summaryrefslogtreecommitdiff
path: root/main/compiler-rt
diff options
context:
space:
mode:
authorxentec <xentec@aix0.eu>2017-11-04 09:50:21 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-14 18:44:36 +0100
commitc5400f0769aa54629a427497676d3d40715694dd (patch)
tree3f0c0b353b874aa78b07845fcbcea040b13e1625 /main/compiler-rt
parente62454f8396883a4148a6d9072f5b0e4e986d84d (diff)
downloadaports-c5400f0769aa54629a427497676d3d40715694dd.zip
[llvm]: build with MinSizeRel and our flags
Diffstat (limited to 'main/compiler-rt')
-rw-r--r--main/compiler-rt/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD
index b8764502033..04f45712307 100644
--- a/main/compiler-rt/APKBUILD
+++ b/main/compiler-rt/APKBUILD
@@ -31,8 +31,12 @@ build() {
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
\
- -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
+ -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
+ -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ \
-DCOMPILER_RT_INCLUDE_TESTS=ON \
-DCOMPILER_RT_BUILD_SANITIZERS=OFF \
-DCOMPILER_RT_BUILD_XRAY=OFF