mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 22:04:19 +08:00
Use zstd for llvm
This commit is contained in:
parent
0fcf1b23ae
commit
45aa4951eb
@ -45,6 +45,13 @@ COOKBOOK_CMAKE_FLAGS+=(
|
||||
-DUNIX=1
|
||||
)
|
||||
|
||||
if [ "${COOKBOOK_HOST_SYSROOT}" = "/usr" ]; then
|
||||
# avoid linking as much as possible during bootstrapping
|
||||
COOKBOOK_CMAKE_FLAGS+=(
|
||||
-DLLVM_USE_STATIC_ZSTD=On
|
||||
)
|
||||
fi
|
||||
|
||||
COOKBOOK_SOURCE="$COOKBOOK_SOURCE/lld"
|
||||
|
||||
cookbook_cmake
|
||||
|
||||
@ -7,13 +7,12 @@ shallow_clone = true
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"zlib",
|
||||
"zstd",
|
||||
"libxml2",
|
||||
]
|
||||
dev-dependencies = [
|
||||
"host:xz",
|
||||
"host:libarchive", # workaround for cmake error
|
||||
"host:zstd"
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
@ -40,6 +39,7 @@ COOKBOOK_CMAKE_FLAGS+=(
|
||||
-DLLVM_TOOL_LLVM_COV_BUILD=On
|
||||
-DLLVM_TOOL_LLVM_PROFDATA_BUILD=On
|
||||
-DLLVM_TARGETS_TO_BUILD="$LLVM_TARGETS_TO_BUILD"
|
||||
-DLLVM_ENABLE_ZLIB=Off
|
||||
|
||||
# the rest of options that shared to clang
|
||||
-DCROSS_TOOLCHAIN_FLAGS_NATIVE="-DCMAKE_TOOLCHAIN_FILE=$(realpath "${COOKBOOK_RECIPE}/native.cmake")"
|
||||
@ -64,7 +64,6 @@ if [ "${COOKBOOK_HOST_SYSROOT}" = "/usr" ]; then
|
||||
# avoid linking as much as possible during bootstrapping
|
||||
COOKBOOK_CMAKE_FLAGS+=(
|
||||
-DLLVM_ENABLE_LIBXML2=Off
|
||||
-DLLVM_ENABLE_ZLIB=Off
|
||||
-DLLVM_USE_STATIC_ZSTD=On
|
||||
)
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user