fune/taskcluster/scripts/misc/build-compiler-rt.sh
Mike Hommey 887e185c4a Bug 1773224 - Disable per-target runtime directory. r=firefox-build-system-reviewers,andi
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
2022-06-08 08:46:00 +00:00

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 "$@"