mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Pass -m32/-m64 on to gcc when assembling and linking
This commit is contained in:
parent
100815c097
commit
a742c59a67
2 changed files with 6 additions and 0 deletions
|
@ -320,6 +320,9 @@ int linkObjToExecutable(const char* argv0)
|
||||||
//FIXME: enforce 64 bit
|
//FIXME: enforce 64 bit
|
||||||
if (global.params.is64bit)
|
if (global.params.is64bit)
|
||||||
args.push_back("-m64");
|
args.push_back("-m64");
|
||||||
|
else
|
||||||
|
// Assume 32-bit?
|
||||||
|
args.push_back("-m32");
|
||||||
|
|
||||||
// print link command?
|
// print link command?
|
||||||
if (!quiet || global.params.verbose)
|
if (!quiet || global.params.verbose)
|
||||||
|
|
|
@ -333,6 +333,9 @@ void assemble(const llvm::sys::Path& asmpath, const llvm::sys::Path& objpath)
|
||||||
//FIXME: enforce 64 bit
|
//FIXME: enforce 64 bit
|
||||||
if (global.params.is64bit)
|
if (global.params.is64bit)
|
||||||
args.push_back("-m64");
|
args.push_back("-m64");
|
||||||
|
else
|
||||||
|
// Assume 32-bit?
|
||||||
|
args.push_back("-m32");
|
||||||
|
|
||||||
// Now that "args" owns all the std::strings for the arguments, call the c_str
|
// Now that "args" owns all the std::strings for the arguments, call the c_str
|
||||||
// method to get the underlying string array. We do this game so that the
|
// method to get the underlying string array. We do this game so that the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue