]> Zhao Yanbai Git Server - minix.git/commitdiff
tools/llvm: Do not build with symbols 02/2802/1
authorLionel Sambuc <lionel@minix3.org>
Mon, 1 Sep 2014 09:11:32 +0000 (11:11 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 1 Sep 2014 09:14:06 +0000 (11:14 +0200)
Do not build clang and llvm libraries with debug symbols, when built as
a cross-compilation tool.

This saves a lot of space (about 4G), and hopefully also some
compilation time.

Change-Id: Ifeb91d6932d667fa901a8efe1a95a922e6f6ba98

external/bsd/llvm/Makefile.inc

index 8cfb4ca752f71a3ee87315c5eb1f2e1377cc8671..4e82822475a43fed3f8be695f0b476affd262c59 100644 (file)
@@ -42,7 +42,11 @@ MCLINKER_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config/mclinker
 LLVM_INCLUDE_OBJDIR!=  cd ${NETBSDSRCDIR}/tools/llvm-include && ${PRINTOBJDIR}
 LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR}
 HOST_CPPFLAGS+=        ${CPPFLAGS}
+.if !defined(__MINIX)
 HOST_CXXFLAGS+=        -O2 -g -fno-rtti -fno-exceptions
+.else
+HOST_CXXFLAGS+=        -O2 -fno-rtti -fno-exceptions
+.endif # !defined(__MINIX)
 .if ${MKLLD:Uno} == "yes"
 HOST_CPPFLAGS+=        -std=c++11
 .endif