Disable exceptions in Objective-C++ files when building for x86_64?
Disable exceptions in Objective-C++ files when building for x86_64?
- Subject: Disable exceptions in Objective-C++ files when building for x86_64?
- From: James Dolan <email@hidden>
- Date: Sat, 4 Sep 2010 10:31:11 -0700
Forgive me if this is the wrong list for this question, but I have the
strangest problem.
I just noticed that '-fno-exceptions' has no effect on .m or .mm
files, but only when '-arch x86_64' is set. In other words,
__EXCEPTIONS is raised when it shouldn't be.
It should be easy for anyone to repro... just run the following
commands in Terminal.
exceptions still enabled!
gcc -fno-exceptions -arch x86_64 -dM -E -x objective-c++ - <<<'' |
grep __EXCEPTIONS
exceptions not enabled.
gcc -fno-exceptions -arch i386 -dM -E -x objective-c++ - <<<'' |
grep __EXCEPTIONS
gcc -fno-exceptions -arch x86_64 -dM -E -x c++ - <<<'' | grep __EXCEPTIONS
-james
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden