Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lld/COFF
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-07-09 23:22:39 +0300
committerRui Ueyama <ruiu@google.com>2015-07-09 23:22:39 +0300
commit39d9efb7724bed98518825db2e2cba79f0f2f0f1 (patch)
tree95c9e2e7bf008399d49af7b431d988afa174a64a /lld/COFF
parent3bbcb4d74226cf3523c93a25a2c74a7d8ef892f2 (diff)
COFF: Fix command line options for external commands.
llvm-svn: 241853
Diffstat (limited to 'lld/COFF')
-rw-r--r--lld/COFF/DriverUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/DriverUtils.cpp b/lld/COFF/DriverUtils.cpp
index 3863befd9c29..cb838424e7d9 100644
--- a/lld/COFF/DriverUtils.cpp
+++ b/lld/COFF/DriverUtils.cpp
@@ -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);