summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-07-09 20:22:39 +0000
committerRui Ueyama <ruiu@google.com>2015-07-09 20:22:39 +0000
commit39d9efb7724bed98518825db2e2cba79f0f2f0f1 (patch)
tree95c9e2e7bf008399d49af7b431d988afa174a64a
parent3bbcb4d74226cf3523c93a25a2c74a7d8ef892f2 (diff)
downloadbcm5719-llvm-39d9efb7724bed98518825db2e2cba79f0f2f0f1.tar.gz
bcm5719-llvm-39d9efb7724bed98518825db2e2cba79f0f2f0f1.zip
COFF: Fix command line options for external commands.
llvm-svn: 241853
-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 3863befd9c2..cb838424e7d 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);
OpenPOWER on IntegriCloud