authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-05-06 19:01:46+02:00
committergravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2021-05-11 12:27:24+02:00
log65ee7909b90fc593ffd1f89777ff019e824eafc9
treeb5b92896743761488c725ecea6ce53d4ad79cfd8
parent55d235dc389635f16f4c38f70ad685677d04e6e5

stage2: Pass -mthumb when compiling C/C++ code

Apparently the Clang driver requires this flag and ignores the target triple.

1 files changed, 4 insertions(+), 0 deletions(-)

src/Compilation.zig+4
......@@ -2608,6 +2608,10 @@ pub fn addCCArgs(
26082608 }
26092609 }
26102610
2611 if (target.cpu.arch.isThumb()) {
2612 try argv.append("-mthumb");
2613 }
2614
26112615 if (comp.haveFramePointer()) {
26122616 try argv.append("-fno-omit-frame-pointer");
26132617 } else {