community/ldc: fixes

This commit is contained in:
Kevin Mihelich 2021-08-04 02:45:02 +00:00
parent 945cf41393
commit 7903cd7560

View file

@ -4,7 +4,9 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - -DBUILD_LTO_LIBS=OFF
# - -DLDC_BUILD_WITH_LTO=OFF
# - removed "-linker=gold -flto=full" from -DD_COMPILER_FLAGS
# - ninja -j2 due to RAM constraints
buildarch=12
@ -59,11 +61,12 @@ build() {
-DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \
-DBUILD_SHARED_LIBS=BOTH \
-DBUILD_LTO_LIBS=OFF \
-DLDC_BUILD_WITH_LTO=OFF \
-DLDC_WITH_LLD=OFF \
-DD_COMPILER_FLAGS="-link-defaultlib-shared=false" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
..
ninja
ninja -j2
}
check() {