mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06: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:
@@ -20,6 +20,7 @@
|
||||
#include "cmGlobalNinjaGenerator.h"
|
||||
#include "cmLinkLineComputer.h"
|
||||
#include "cmLinkLineDeviceComputer.h"
|
||||
#include "cmLocalCommonGenerator.h"
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmLocalNinjaGenerator.h"
|
||||
#include "cmMakefile.h"
|
||||
@@ -976,6 +977,13 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||
std::string obj_list_file = mdi->DefFile + ".objs";
|
||||
cmd += this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||
obj_list_file, cmOutputConverter::SHELL);
|
||||
|
||||
const char* nm_executable = GetMakefile()->GetDefinition("CMAKE_NM");
|
||||
if (nm_executable && *nm_executable) {
|
||||
cmd += " --nm=";
|
||||
cmd += this->LocalCommonGenerator->ConvertToOutputFormat(
|
||||
nm_executable, cmOutputConverter::SHELL);
|
||||
}
|
||||
preLinkCmdLines.push_back(std::move(cmd));
|
||||
|
||||
// create a list of obj files for the -E __create_def to read
|
||||
|
||||
Reference in New Issue
Block a user