discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash occurs when catching std::exception in Objective-C++ code comp


From: Richard Frith-Macdonald
Subject: Re: Crash occurs when catching std::exception in Objective-C++ code compiled with clang on Linux and using libobjc2
Date: Wed, 29 Nov 2017 12:17:53 +0000


> On 29 Nov 2017, at 10:52, David Chisnall <address@hidden> wrote:
> 
> On 29 Nov 2017, at 10:30, Richard Frith-Macdonald <address@hidden> wrote:
>> 
>> The -fgnu-runtime is for using the runtime that comes with the GNU compiler 
>> (gcc).
> 
> More specifically, it is for telling GCC to use the runtime that comes with 
> GCC.  If you wish to use the GCC runtime with clang, the correct flag is 
> -fobjc-runtime=gcc (optionally with a version, though clang currently ignores 
> the version because it doesn’t know of any changes to the GCC runtime ABI 
> since clang shipped - I don’t think there are any). 

That's interesting ...I don't think gnustep-make really knows about/supports 
the option of using clang with the gcc runtime.
If you use gnu-gnu-gnu as the library combo, it's expecting gcc and the gnu 
runtime
If you use ng-gnu-gnu as the library combo, it's expecting clang and the 
gnustep/objc2 runtime
If someone is really determined they can override compiler/flags, but I don't 
trust my ability to get wierd combination right, so I never try that.
Perhaps gnustep-make should try to detect those sorts of override and protect 
us from our own mistakes, but there's a limit to how far that can be taken and 
we should probably just trust that if people override cimpiler and flags 
specifications they know what they are doing.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]