From c5400f0769aa54629a427497676d3d40715694dd Mon Sep 17 00:00:00 2001 From: xentec Date: Sat, 4 Nov 2017 09:50:21 +0100 Subject: [llvm]: build with MinSizeRel and our flags --- main/compiler-rt/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/compiler-rt/APKBUILD') diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD index b876450203..04f4571230 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 -- cgit v1.2.3