summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/Makefile.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index e88823c85f0..da98cc042fa 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -510,6 +510,10 @@ endif
#---------------------------------------------------------
ifdef BYTECODE_LIBRARY
+# make the C and C++ compilers strip debug info out of bytecode libraries.
+BCCompile.C += -Wa,-strip-debug
+BCCompile.CXX += -Wa,-strip-debug
+
all-local:: $(LibName.BCA)
ifdef EXPORTED_SYMBOL_FILE
OpenPOWER on IntegriCloud