COFF: Fix command line options for external commands.

llvm-svn: 241853
This commit is contained in:
Rui Ueyama 2015-07-09 20:22:39 +00:00
parent 3bbcb4d742
commit 39d9efb772
1 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ convertResToCOFF(const std::vector<MemoryBufferRef> &MBs) {
// Execute cvtres.exe.
Executor E("cvtres.exe");
E.add("/machine:x64");
E.add("/machine:" + machineTypeToStr(Config->MachineType));
E.add("/readonly");
E.add("/nologo");
E.add("/out:" + Path);
@ -541,7 +541,7 @@ std::error_code writeImportLibrary() {
Executor E("lib.exe");
E.add("/nologo");
E.add("/machine:x64");
E.add("/machine:" + machineTypeToStr(Config->MachineType));
E.add(Twine("/def:") + Def);
if (Config->Implib.empty()) {
SmallString<128> Out = StringRef(Config->OutputFile);