mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
Reduce llvm link during bootstrap
This commit is contained in:
parent
5e29ff18f3
commit
0fcf1b23ae
@ -6,7 +6,7 @@ patches = [
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
DYNAMIC_STATIC_INIT
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
${COOKBOOK_MAKE}
|
||||
${COOKBOOK_MAKE} install DESTDIR="${COOKBOOK_STAGE}" prefix="/usr"
|
||||
|
||||
@ -13,6 +13,7 @@ dependencies = [
|
||||
dev-dependencies = [
|
||||
"host:xz",
|
||||
"host:libarchive", # workaround for cmake error
|
||||
"host:zstd"
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
@ -59,6 +60,15 @@ COOKBOOK_CMAKE_FLAGS+=(
|
||||
-DUNIX=1
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
COOKBOOK_SOURCE="$COOKBOOK_SOURCE/llvm"
|
||||
cookbook_cmake
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user