summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-10-22 19:49:19 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-10-22 19:49:19 +0000
commita7d1751d986937a6fd018bb1240427e0d04b78e9 (patch)
treefbe7e2ab80a6019329362d711f3080c3809f45e6 /llvm/cmake/modules
parent60a877b5b9c27fb2c3418274d05d7b0063838948 (diff)
downloadbcm5719-llvm-a7d1751d986937a6fd018bb1240427e0d04b78e9.tar.gz
bcm5719-llvm-a7d1751d986937a6fd018bb1240427e0d04b78e9.zip
Do not add -gsplit-dwarf to LLVM_DEFINITIONS.
This would cause the flag to appear in the output of "llvm-config --cppflags", which should contain only preprocessor flags. The -gsplit-dwarf flag in particular can cause problems with certain downstream users such as cgo. Differential Revision: http://reviews.llvm.org/D5895 llvm-svn: 220410
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 5b9d554341a..90d766a4fb6 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -393,7 +393,7 @@ endif()
# Turn on -gsplit-dwarf if requested
if(LLVM_USE_SPLIT_DWARF)
- add_llvm_definitions("-gsplit-dwarf")
+ add_definitions("-gsplit-dwarf")
endif()
add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
OpenPOWER on IntegriCloud