[lld] r217219 - [PECOFF] Run lib.exe with /machine:x64.
Rui Ueyama
ruiu at google.com
Thu Sep 4 18:35:23 PDT 2014
Author: ruiu
Date: Thu Sep 4 20:35:23 2014
New Revision: 217219
URL: http://llvm.org/viewvc/llvm-project?rev=217219&view=rev
Log:
[PECOFF] Run lib.exe with /machine:x64.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp?rev=217219&r1=217218&r2=217219&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterImportLibrary.cpp Thu Sep 4 20:35:23 2014
@@ -80,7 +80,7 @@ void writeImportLibrary(const PECOFFLink
std::vector<const char *> args;
args.push_back(programPath.c_str());
args.push_back("/nologo");
- args.push_back("/machine:x86");
+ args.push_back(ctx.is64Bit() ? "/machine:x64" : "/machine:x86");
args.push_back(defArg.c_str());
args.push_back(outputArg.c_str());
args.push_back(nullptr);
More information about the llvm-commits
mailing list