mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
Merge topic 'clang-ipo-support'
dca9c33abcTests: Remove old IPO testc856d4556bbindexplib: supporting llvm bitcode formats using llvm-nm079b8e2916Clang: prefer lld-link over link.exe6e3655db2cClang: add LTO support for GNU-command line clang on windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3527
This commit is contained in:
@@ -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"
|
||||
@@ -1756,6 +1757,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);
|
||||
|
||||
Reference in New Issue
Block a user