mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
zig cc: pass -mthumb to the assembler as necessary
This commit is contained in:
parent
8c47dda7df
commit
c44f631c72
1 changed files with 5 additions and 2 deletions
|
|
@ -6835,8 +6835,11 @@ pub fn addCCArgs(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.cpu.arch.isArm()) {
|
if (target.cpu.arch.isThumb()) {
|
||||||
try argv.append(if (target.cpu.arch.isThumb()) "-mthumb" else "-mno-thumb");
|
try argv.append(switch (ext) {
|
||||||
|
.assembly, .assembly_with_cpp => "-Wa,-mthumb",
|
||||||
|
else => "-mthumb",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target_util.llvmMachineAbi(target)) |mabi| {
|
if (target_util.llvmMachineAbi(target)) |mabi| {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue