-
-
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
Undeclared identifier atomicStoreN when cross-compiling to Windows with ORC and threads #22392
Comments
We don't support Zig though. |
It's just clang properly set up as a cross-compiler for that target. Without it I can't demonstrate the bug as basic headers like windows.h aren't available on my system. As tooling, Zig makes Nim very competitive against go. Go has static binaries on Linux but I don't need them when I can target the exact glibc version I need. Go also doesn't need any more work than GOOS= GOARCH= settings to cross-compile to Windows, but Nim binaries are much smaller (in one case, 8G vs. <300k) and the language is of course much nicer. It's nice to not need old server images just to build sufficiently portable executables. |
Off topic, but how can Go be "competitive" when it produces a 8G binary? No, don't answer the question! The point is that this perspective is rather foolish. The number of users who migrate from Go to Nim is close to zero, no matter how "competitive" Nim is and that's fine, Go is not "competitive" against Haskell and Ocaml either, but nobody noticed. |
Btw, |
|
Description
With Zig as a cross-compiler with zigcc.sh:
A Nim 'hello world' ...
fails to cross-compile to Windows with --mm:orc.
Nim Version
Nim Compiler Version 2.0.0 [MacOSX: arm64]
Compiled at 2023-08-04
Copyright (c) 2006-2023 by Andreas Rumpf
Current Output
Possible Solution
Compilation succeeds with either --threads:off or --mm:refc
Additional Information
This might be similar to #20873
The text was updated successfully, but these errors were encountered: