mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 21:06:33 +03:00
Add -m64 switch to gcc calls on 64-bit platforms.
This commit is contained in:
parent
320c22810a
commit
287fa3446c
2 changed files with 8 additions and 0 deletions
|
@ -306,6 +306,10 @@ int linkObjToExecutable(const char* argv0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//FIXME: enforce 64 bit
|
||||||
|
if (global.params.is64bit)
|
||||||
|
args.push_back("-m64");
|
||||||
|
|
||||||
// print link command?
|
// print link command?
|
||||||
if (!global.params.quiet || global.params.verbose)
|
if (!global.params.quiet || global.params.verbose)
|
||||||
{
|
{
|
||||||
|
|
|
@ -359,6 +359,10 @@ void assemble(const llvm::sys::Path& asmpath, const llvm::sys::Path& objpath)
|
||||||
//FIXME: only use this if needed?
|
//FIXME: only use this if needed?
|
||||||
args.push_back("-fpic");
|
args.push_back("-fpic");
|
||||||
|
|
||||||
|
//FIXME: enforce 64 bit
|
||||||
|
if (global.params.is64bit)
|
||||||
|
args.push_back("-m64");
|
||||||
|
|
||||||
// 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
|
||||||
// std::string array is guaranteed to outlive the const char* array.
|
// std::string array is guaranteed to outlive the const char* array.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue