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:
LemonBoy 2021-05-06 19:01:46 +02:00 committed by Isaac Freund
parent 55d235dc38
commit 65ee7909b9

View File

@ -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 {