mirror of
https://github.com/ziglang/zig.git
synced 2026-02-01 04:03:40 +00:00
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:
parent
55d235dc38
commit
65ee7909b9
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user