[cfe-commits] [patch] Fix -fno-exceptions for c++
Rafael Espindola
espindola at google.com
Mon Sep 28 16:31:26 PDT 2009
Currently __EXCEPTIONS=1 is always defined when compiling c++. The
attached patch fixes it:
clang -E -fno-exceptions test.c disabled
clang -E -fexceptions test.c enabled
clang -E test.c disabled
clang -E -fno-exceptions test.cc disabled
clang -E -fexceptions test.cc enabled
clang -E test.cc enabled
But it looks silly :-)
Is there a way in clang-cc to test that an option was not given (as
opposed to having the default value)?
Cheers,
--
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exceptions.patch
Type: text/x-diff
Size: 3014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090928/b9a37d3e/attachment.patch>
More information about the cfe-commits
mailing list