forked from mirrors/gecko-dev
There are a set of problems that arise from that setup that need to be addressed before this can be enabled, but upstream is toying with it, and it's better to have a setup that is stable rather than a setup that can break when upstream changes something (which happened again earlier today). Differential Revision: https://phabricator.services.mozilla.com/D148625
33 lines
627 B
Bash
Executable file
33 lines
627 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e -x
|
|
|
|
artifact=$(basename $TOOLCHAIN_ARTIFACT)
|
|
dir=${artifact%.tar.*}
|
|
target=${dir#compiler-rt-}
|
|
|
|
case "$target" in
|
|
*-linux-android)
|
|
EXTRA_CMAKE_FLAGS="
|
|
-DCOMPILER_RT_BUILD_LIBFUZZER=OFF
|
|
-DCOMPILER_RT_BUILD_ORC=OFF
|
|
"
|
|
;;
|
|
*-apple-darwin)
|
|
EXTRA_CMAKE_FLAGS="
|
|
-DCOMPILER_RT_ENABLE_IOS=OFF
|
|
-DCOMPILER_RT_ENABLE_WATCHOS=OFF
|
|
-DCOMPILER_RT_ENABLE_TVOS=OFF
|
|
"
|
|
;;
|
|
esac
|
|
|
|
EXTRA_CMAKE_FLAGS="
|
|
$EXTRA_CMAKE_FLAGS
|
|
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
|
|
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF
|
|
"
|
|
|
|
export EXTRA_CMAKE_FLAGS
|
|
|
|
$(dirname $0)/build-llvm-common.sh compiler-rt install $target "$@"
|