[PECOFF] Run lib.exe with /machine:x64.

llvm-svn: 217219
This commit is contained in:
Rui Ueyama 2014-09-05 01:35:23 +00:00
parent ead5b9314a
commit 2feff785fc
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ void writeImportLibrary(const PECOFFLinkingContext &ctx) {
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);