diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-08 23:11:32 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-09 10:11:52 +0200 |
| commit | 1bfc71d4dab0a7347f76dc6f0afc1346bd3dc3bb (patch) | |
| tree | 2294f80e70cc941166b72cf12d243ef4548b8ac1 /build.zig | |
| parent | 7733b5dbe603033a1ed9e8d0146ef7432d5ffd5b (diff) | |
| download | zig-1bfc71d4dab0a7347f76dc6f0afc1346bd3dc3bb.tar.gz zig-1bfc71d4dab0a7347f76dc6f0afc1346bd3dc3bb.zip | |
build: Set LLVM_BUILD_STATIC/CLANG_BUILD_STATIC when linking statically.
This is needed since LLVM 20, particularly for Windows.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -706,6 +706,9 @@ const exe_cflags = [_][]const u8{ "-Wno-type-limits", "-Wno-missing-braces", "-Wno-comment", + // `exe_cflags` is only used for static linking. + "-DLLVM_BUILD_STATIC", + "-DCLANG_BUILD_STATIC", }; fn addCmakeCfgOptionsToExe( |
