diff options
author | Zsolt Parragi <zsolt.parragi@cancellar.hu> | 2019-08-13 12:29:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-30 15:30:38 (GMT) |
commit | c856d4556b4ec28cb818ef3c7aca1e4a30e0499d (patch) | |
tree | af46514551c74f62952d3d2d5cf2ca34171f9a1c /Source/cmMakefileTargetGenerator.cxx | |
parent | 079b8e29168dc081f37f79f3577a5c0690bb7051 (diff) | |
download | CMake-c856d4556b4ec28cb818ef3c7aca1e4a30e0499d.zip CMake-c856d4556b4ec28cb818ef3c7aca1e4a30e0499d.tar.gz CMake-c856d4556b4ec28cb818ef3c7aca1e4a30e0499d.tar.bz2 |
bindexplib: supporting llvm bitcode formats using llvm-nm
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index f99fe4e..f84ec76 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -15,6 +15,7 @@ #include "cmGeneratorExpression.h" #include "cmGeneratorTarget.h" #include "cmGlobalUnixMakefileGenerator3.h" +#include "cmLocalCommonGenerator.h" #include "cmLocalUnixMakefileGenerator3.h" #include "cmMakefile.h" #include "cmMakefileExecutableTargetGenerator.h" @@ -1738,6 +1739,12 @@ void cmMakefileTargetGenerator::GenDefFile( this->LocalGenerator->MaybeConvertToRelativePath( this->LocalGenerator->GetCurrentBinaryDirectory(), objlist_file), cmOutputConverter::SHELL); + const char* nm_executable = this->Makefile->GetDefinition("CMAKE_NM"); + if (nm_executable && *nm_executable) { + cmd += " --nm="; + cmd += this->LocalCommonGenerator->ConvertToOutputFormat( + nm_executable, cmOutputConverter::SHELL); + } real_link_commands.insert(real_link_commands.begin(), cmd); // create a list of obj files for the -E __create_def to read cmGeneratedFileStream fout(objlist_file); |