Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Statically link unstable libc++ when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdriley committed Feb 24, 2021
1 parent f305f79 commit a97f727
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions BuildSettings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ set(LLVM_TARGETS_TO_BUILD
X86
CACHE UNINITIALIZED "")

# Build unstable libc++ (with ABI-breaking changes) and try to statically link
# toolchain binaries against it.
#
# Statically linking libc++ isn't supported on non-GNU-compatible compilers
# (MSVC) or on Apple platforms. When this file is loaded CMake hasn't done
# compiler detection yet, so we can't determine if this is a supported target.
# Fortunately, when unsupported the "static link" flag has no effect on the
# build and either warns or fails silently.
set(LIBCXX_ABI_UNSTABLE ON CACHE UNINITIALIZED "")
set(LLVM_STATIC_LINK_CXX_STDLIB ON CACHE UNINITIALIZED "")

# Disable assertions
set(LIBCXX_ENABLE_ASSERTIONS OFF CACHE UNINITIALIZED "")
set(LIBCXXABI_ENABLE_ASSERTIONS OFF CACHE UNINITIALIZED "")
Expand Down

0 comments on commit a97f727

Please sign in to comment.