build-compiler-rt: Don't rebuild builtins when building sanitizers
This commit is contained in:
1 parent
f92b90133d
commit
0af177bf4f
1 file changed
+3
@@ -18,12 +18,14 @@ set -e
|
|||||||
|
|
||||||
SRC_DIR=../lib/builtins
|
SRC_DIR=../lib/builtins
|
||||||
BUILD_SUFFIX=
|
BUILD_SUFFIX=
|
||||||
|
BUILD_BUILTINS=TRUE
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
if [ "$1" = "--build-sanitizers" ]; then
|
if [ "$1" = "--build-sanitizers" ]; then
|
||||||
SRC_DIR=..
|
SRC_DIR=..
|
||||||
BUILD_SUFFIX=-sanitizers
|
BUILD_SUFFIX=-sanitizers
|
||||||
SANITIZERS=1
|
SANITIZERS=1
|
||||||
|
BUILD_BUILTINS=FALSE
|
||||||
else
|
else
|
||||||
PREFIX="$1"
|
PREFIX="$1"
|
||||||
fi
|
fi
|
||||||
@@ -95,6 +97,7 @@ for arch in $ARCHS; do
|
|||||||
-DCMAKE_C_COMPILER_TARGET=$arch-windows-gnu \
|
-DCMAKE_C_COMPILER_TARGET=$arch-windows-gnu \
|
||||||
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=TRUE \
|
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=TRUE \
|
||||||
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=TRUE \
|
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=TRUE \
|
||||||
|
-DCOMPILER_RT_BUILD_BUILTINS=$BUILD_BUILTINS \
|
||||||
-DLLVM_CONFIG_PATH="" \
|
-DLLVM_CONFIG_PATH="" \
|
||||||
-DSANITIZER_CXX_ABI=libc++ \
|
-DSANITIZER_CXX_ABI=libc++ \
|
||||||
$SRC_DIR
|
$SRC_DIR
|
||||||
|
|||||||
Reference in new issue
Block a user