|
From: | Frederik Seiffert |
Subject: | Re: tools-windows-msvc runtime error |
Date: | Tue, 18 Jul 2023 09:34:08 +0200 |
Thanks, I reproduced the issue here. It turns out using the Microsoft linker causes this issue, but using LLD works fine. I’m not sure why or since when this is, as using link.exe definitely worked for me at one point, but now using either VS 2019 or 2022 causes this crash as soon as objc_msgSend() is called. Maybe David has an idea what could be going on here? Anyway, passing -fuse-ld=lld should get you going. I would also add /Z7 to produce debug symbols as well: clang-cl -I C:\GNUstep\x64\Debug\include -fobjc-runtime=gnustep-2.0 -Xclang -fexceptions -Xclang -fobjc-exceptions -fblocks -DGNUSTEP -DGNUSTEP_WITH_DLL -DGNUSTEP_RUNTIME=1 -D_NONFRAGILE_ABI=1 -D_NATIVE_OBJC_EXCEPTIONS -DGSWARN -DGSDIAGNOSE /MDd /Z7 /c test.m clang-cl test.obj gnustep-base.lib objc.lib dispatch.lib -fuse-ld=lld /MDd /Z7 -o test.exe /link /LIBPATH:C:\GNUstep\x64\Debug\lib I’ve updated the toolchain readme to add this flag in the example. Hope that helps. Frederik
|
[Prev in Thread] | Current Thread | [Next in Thread] |