aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-07-23 09:02:51 -0700
committerCody Tapscott <topolarity@tapscott.me>2022-07-23 09:03:19 -0700
commit5337934bcd174987e813e192cb5ef173c13eff37 (patch)
tree3bc5787c229bd477068e82891803d6d187403e48 /src
parent4113a790b0da56d7081aca52d0ca4e349d27a6a1 (diff)
downloadzig-5337934bcd174987e813e192cb5ef173c13eff37.tar.gz
zig-5337934bcd174987e813e192cb5ef173c13eff37.zip
CMake: Add ZIG_LLVM_LINK_MODE to config.h
This is currently unused, but it will be needed soon so that we can avoid linking static libc++ if LLVM/Clang is configured as a shared library.
Diffstat (limited to 'src')
-rw-r--r--src/stage1/config.h.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stage1/config.h.in b/src/stage1/config.h.in
index 4d375652ff..2be0839996 100644
--- a/src/stage1/config.h.in
+++ b/src/stage1/config.h.in
@@ -16,6 +16,7 @@
// Used by build.zig for communicating build information to self hosted build.
#define ZIG_CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@"
+#define ZIG_LLVM_LINK_MODE "@LLVM_LINK_MODE@"
#define ZIG_CMAKE_PREFIX_PATH "@CMAKE_PREFIX_PATH@"
#define ZIG_CXX_COMPILER "@CMAKE_CXX_COMPILER@"
#define ZIG_LLD_INCLUDE_PATH "@LLD_INCLUDE_DIRS@"