summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-30 21:44:10 +0000
committerEric Christopher <echristo@gmail.com>2013-07-30 21:44:10 +0000
commit6aebd5facbbc80787270cc1b18bffbf6c6f655e8 (patch)
tree393014f86e53c4499bbf0c7e5828e56d48edfc29 /cmake
parent0de6832c16ce48f6546c74f6b17e27d149eebfb2 (diff)
downloadllvm-6aebd5facbbc80787270cc1b18bffbf6c6f655e8.tar.gz
llvm-6aebd5facbbc80787270cc1b18bffbf6c6f655e8.tar.bz2
llvm-6aebd5facbbc80787270cc1b18bffbf6c6f655e8.tar.xz
Add capability for building with -gsplit-dwarf to the cmake build.
In limited testing this seems to work. Caveat emptor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index 931fcdc113..88a4730f65 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -261,6 +261,11 @@ if(LLVM_USE_SANITIZER)
endif()
endif()
+# Turn on -gsplit-dwarf if requested
+if(LLVM_USE_SPLIT_DWARF)
+ add_flag_if_supported("-gsplit-dwarf")
+endif()
+
add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
add_llvm_definitions( -D__STDC_FORMAT_MACROS )
add_llvm_definitions( -D__STDC_LIMIT_MACROS )