summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-30 22:34:30 +0000
committerEric Christopher <echristo@gmail.com>2013-07-30 22:34:30 +0000
commitb9db9cd6a9f8210a765ac34078e1ca5132439e53 (patch)
treeada89d53070487d611bcee6da68eb9bd3c55a895 /cmake
parent3181f5900ff5d9800c38284c7d3427cb6e306c9a (diff)
downloadllvm-b9db9cd6a9f8210a765ac34078e1ca5132439e53.tar.gz
llvm-b9db9cd6a9f8210a765ac34078e1ca5132439e53.tar.bz2
llvm-b9db9cd6a9f8210a765ac34078e1ca5132439e53.tar.xz
Make sure that -gsplit-dwarf isn't passed to the linker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index 88a4730f65..58ffb8db51 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -263,7 +263,7 @@ endif()
# Turn on -gsplit-dwarf if requested
if(LLVM_USE_SPLIT_DWARF)
- add_flag_if_supported("-gsplit-dwarf")
+ add_llvm_definitions("-gsplit-dwarf")
endif()
add_llvm_definitions( -D__STDC_CONSTANT_MACROS )