mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
AArch32/64: gcc does not support -m32/-m64.
Currently we want to pass -m64 to gcc which aborts the compiler.
This commit is contained in:
parent
79358be015
commit
5243b44ccd
1 changed files with 17 additions and 4 deletions
|
@ -230,13 +230,26 @@ static int linkObjToBinaryGcc(bool sharedLib, bool fullyStatic) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
switch (global.params.targetTriple.getArch()) {
|
||||||
|
case llvm::Triple::arm:
|
||||||
|
case llvm::Triple::armeb:
|
||||||
|
case llvm::Triple::aarch64:
|
||||||
|
case llvm::Triple::aarch64_be:
|
||||||
|
#if LDC_LLVM_VER == 305
|
||||||
|
case llvm::Triple::arm64:
|
||||||
|
case llvm::Triple::arm64_be:
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
default:
|
||||||
if (global.params.is64bit) {
|
if (global.params.is64bit) {
|
||||||
args.push_back("-m64");
|
args.push_back("-m64");
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
args.push_back("-m32");
|
args.push_back("-m32");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (opts::createSharedLib && addSoname) {
|
if (opts::createSharedLib && addSoname) {
|
||||||
std::string soname = opts::soname;
|
std::string soname = opts::soname;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue