mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
0de6832c16
commit
6aebd5facb
@ -183,6 +183,9 @@ endif( LLVM_USE_OPROFILE )
|
|||||||
set(LLVM_USE_SANITIZER "" CACHE STRING
|
set(LLVM_USE_SANITIZER "" CACHE STRING
|
||||||
"Define the sanitizer used to build binaries and tests.")
|
"Define the sanitizer used to build binaries and tests.")
|
||||||
|
|
||||||
|
option(LLVM_USE_SPLIT_DWARF
|
||||||
|
"Use -gsplit-dwarf when compiling llvm." OFF)
|
||||||
|
|
||||||
# Define an option controlling whether we should build for 32-bit on 64-bit
|
# Define an option controlling whether we should build for 32-bit on 64-bit
|
||||||
# platforms, where supported.
|
# platforms, where supported.
|
||||||
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
|
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
|
||||||
|
@ -261,6 +261,11 @@ if(LLVM_USE_SANITIZER)
|
|||||||
endif()
|
endif()
|
||||||
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_CONSTANT_MACROS )
|
||||||
add_llvm_definitions( -D__STDC_FORMAT_MACROS )
|
add_llvm_definitions( -D__STDC_FORMAT_MACROS )
|
||||||
add_llvm_definitions( -D__STDC_LIMIT_MACROS )
|
add_llvm_definitions( -D__STDC_LIMIT_MACROS )
|
||||||
|
Loading…
Reference in New Issue
Block a user