stage2: Pass -mthumb when compiling C/C++ code
Apparently the Clang driver requires this flag and ignores the target triple.
This commit is contained in:
@@ -2608,6 +2608,10 @@ pub fn addCCArgs(
|
||||
}
|
||||
}
|
||||
|
||||
if (target.cpu.arch.isThumb()) {
|
||||
try argv.append("-mthumb");
|
||||
}
|
||||
|
||||
if (comp.haveFramePointer()) {
|
||||
try argv.append("-fno-omit-frame-pointer");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user