[llvm] r187452 - Add capability for building with -gsplit-dwarf to the cmake build.
Eric Christopher
echristo at gmail.com
Tue Jul 30 15:26:00 PDT 2013
Lovely. Why on earth is it passing those options down to the linker?
I'll see what I can suss out about cmake here.
-eric
On Tue, Jul 30, 2013 at 3:24 PM, David Blaikie <dblaikie at gmail.com> wrote:
> Looking into it at the moment, but I'm getting
>
> clang-3.3: warning: argument unused during compilation: '-gsplit-dwarf'
>
> for every link step in my build.
>
> On Tue, Jul 30, 2013 at 2:44 PM, Eric Christopher <echristo at gmail.com> wrote:
>> Author: echristo
>> Date: Tue Jul 30 16:44:10 2013
>> New Revision: 187452
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=187452&view=rev
>> Log:
>> Add capability for building with -gsplit-dwarf to the cmake build.
>>
>> In limited testing this seems to work. Caveat emptor.
>>
>> Modified:
>> llvm/trunk/CMakeLists.txt
>> llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
>>
>> Modified: llvm/trunk/CMakeLists.txt
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=187452&r1=187451&r2=187452&view=diff
>> ==============================================================================
>> --- llvm/trunk/CMakeLists.txt (original)
>> +++ llvm/trunk/CMakeLists.txt Tue Jul 30 16:44:10 2013
>> @@ -183,6 +183,9 @@ endif( LLVM_USE_OPROFILE )
>> set(LLVM_USE_SANITIZER "" CACHE STRING
>> "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
>> # platforms, where supported.
>> if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
>>
>> Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=187452&r1=187451&r2=187452&view=diff
>> ==============================================================================
>> --- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
>> +++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Jul 30 16:44:10 2013
>> @@ -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 )
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list