llvm.org GIT mirror llvm / 6aebd5f
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 Eric Christopher 6 years ago
2 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
182182 set(LLVM_USE_SANITIZER "" CACHE STRING
183183 "Define the sanitizer used to build binaries and tests.")
184184
185 option(LLVM_USE_SPLIT_DWARF
186 "Use -gsplit-dwarf when compiling llvm." OFF)
187
185188 # Define an option controlling whether we should build for 32-bit on 64-bit
186189 # platforms, where supported.
187190 if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
260260 endif()
261261 endif()
262262
263 # Turn on -gsplit-dwarf if requested
264 if(LLVM_USE_SPLIT_DWARF)
265 add_flag_if_supported("-gsplit-dwarf")
266 endif()
267
263268 add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
264269 add_llvm_definitions( -D__STDC_FORMAT_MACROS )
265270 add_llvm_definitions( -D__STDC_LIMIT_MACROS )