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

Commit

Permalink
More spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdriley committed Feb 25, 2021
1 parent 29f774d commit 40b86a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BuildSettings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
# https://cmake.org/cmake/help/latest/command/set.html
# https://cmake.org/cmake/help/latest/prop_cache/TYPE.html


# Set build type. This is a CMake built-in so we use its real type.
set(CMAKE_BUILD_TYPE Release CACHE STRING "")


# Only install the toolchain components of LLVM rather than all the libraries
# and headers.
set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE UNINITIALIZED "")


# Select components to build
set(LLVM_ENABLE_PROJECTS
clang
Expand All @@ -38,12 +41,14 @@ set(LLVM_TARGETS_TO_BUILD
X86
CACHE UNINITIALIZED "")


# Try to statically link tools against the C++ standard library. This is not
# supported on Apple platforms or on non-GNU-compatible compilers (MSVC), but
# it fails benignly for those targets -- a warning is raised and the build
# output is unaffected.
set(LLVM_STATIC_LINK_CXX_STDLIB ON CACHE UNINITIALIZED "")


# Build a toolchain that will link programs against the unstable version of
# libc++ from this build. We don't want users to have to install that libc++
# alongside system libraries, so we only enable this on platforms where users
Expand All @@ -60,18 +65,21 @@ if(NOT "${CMAKE_HOST_SYSTEM_NAME}" MATCHES "^(Windows|Darwin)$")
set(LIBCXX_ABI_UNSTABLE ON CACHE UNINITIALIZED "")
endif()


# Set a default sysroot for macOS builds. This makes it more likely a bare
# `clang` or `clang++` invocation will work without extra configuration.
if("${CMAKE_HOST_SYSTEM_NAME}" MATCHES "^(Darwin)$")
set(DEFAULT_SYSROOT /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CACHE UNINITIALIZED "")
endif()


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


# Disable/remove parts of the build
set(CLANG_ENABLE_ARCMT OFF CACHE UNINITIALIZED "")
set(CLANG_INCLUDE_TESTS OFF CACHE UNINITIALIZED "")
Expand Down

0 comments on commit 40b86a6

Please sign in to comment.