diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-06 15:42:04 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-06 18:38:09 -0400 |
| commit | 15ab61b2a00b56c5b15a2d5a4efbf6b7bde7a868 (patch) | |
| tree | 5f428ae890f41eed431234d3007ed44a56fc080c /src/analyze.cpp | |
| parent | afa24ccd993e38b56407c83160da567bc2b0ae8a (diff) | |
| download | zig-15ab61b2a00b56c5b15a2d5a4efbf6b7bde7a868.tar.gz zig-15ab61b2a00b56c5b15a2d5a4efbf6b7bde7a868.zip | |
cmake: improvements to cross-compiling for Windows
* don't unconditionally pass -lz3 for mingw builds. If mingw builds
require this then the llvm-config executable should put it as part of
--system-libs. If there is a bug and it does not do that, and we need
a workaround, then the workaround should be an explicit cmake option.
* don't link libstage2.a against -lntdll. This causes zig to set
`builtin.link_mode == .Dynamic` and include the TLS definitions,
which then collide with the mingw-w64 symbols. This should probably
be addressed separately, but for now this solves the problem and
there is no reason to link a static library against a DLL.
* Findllvm.cmake no longer treats the libraries as "optional" and will
emit a cmake error if one is not found. Additionally, the
not-required LLVM library LLVMTableGen is omitted.
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
