diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-30 21:44:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-30 21:44:10 +0000 |
commit | 6aebd5facbbc80787270cc1b18bffbf6c6f655e8 (patch) | |
tree | 393014f86e53c4499bbf0c7e5828e56d48edfc29 /cmake | |
parent | 0de6832c16ce48f6546c74f6b17e27d149eebfb2 (diff) | |
download | external_llvm-6aebd5facbbc80787270cc1b18bffbf6c6f655e8.zip external_llvm-6aebd5facbbc80787270cc1b18bffbf6c6f655e8.tar.gz external_llvm-6aebd5facbbc80787270cc1b18bffbf6c6f655e8.tar.bz2 |
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.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 931fcdc..88a4730 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 ) |