-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation with vcc or clang (msvc) on Windows fails by using nimRawSetjmp
#19957
Comments
@rockcavera Hello, could you try not defined(clang) or clang_cl here => https://github.com/nim-lang/Nim/pull/19899/files |
I tried and the error persists. The problem also happens with the vcc compiler:
|
I fixed the problem with vcc. The problem with clang can be fixed as well. But the variation between clang msvc or gnu complicates a bit. The clang-cl I'm not sure would be the msvc abi. |
nimRawSetjmp
nimRawSetjmp
The biggest problem with clang on Windows is that the default target is msvc in the installer available for download from the llvm website. So much so that for this, to differentiate the msvc and gnu clang, I did it here. You will only use clang-cl if you want some msvc cl option. |
This error only happens with clang msvc compiler. In the clang gnu compiler this does not happen. The default LLVM installer for Windows is msvc.
Example
Current Output
Expected Output
Compile without error.
Additional Information
The text was updated successfully, but these errors were encountered: