mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Compilation: Pass -mthumb for assembly files too, not just C files.
This commit is contained in:
parent
f10b226c77
commit
2de7296262
@ -5536,10 +5536,6 @@ pub fn addCCArgs(
|
||||
else => {},
|
||||
}
|
||||
|
||||
if (target.cpu.arch.isThumb()) {
|
||||
try argv.append("-mthumb");
|
||||
}
|
||||
|
||||
{
|
||||
var san_arg: std.ArrayListUnmanaged(u8) = .{};
|
||||
const prefix = "-fsanitize=";
|
||||
@ -5726,6 +5722,10 @@ pub fn addCCArgs(
|
||||
},
|
||||
}
|
||||
|
||||
if (target.cpu.arch.isThumb()) {
|
||||
try argv.append("-mthumb");
|
||||
}
|
||||
|
||||
if (target_util.supports_fpic(target) and mod.pic) {
|
||||
try argv.append("-fPIC");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user