mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
musl: Build with -fno-builtin and -mimplicit-it=always (for thumb) like upstream.
This commit is contained in:
parent
2de7296262
commit
f021ad548f
1 changed files with 5 additions and 0 deletions
|
|
@ -384,6 +384,7 @@ fn addCcArgs(
|
|||
try args.appendSlice(&[_][]const u8{
|
||||
"-std=c99",
|
||||
"-ffreestanding",
|
||||
"-fno-builtin",
|
||||
"-fexcess-precision=standard",
|
||||
"-frounding-math",
|
||||
"-fno-strict-aliasing",
|
||||
|
|
@ -422,6 +423,10 @@ fn addCcArgs(
|
|||
"-Qunused-arguments",
|
||||
"-w", // disable all warnings
|
||||
});
|
||||
|
||||
if (target.cpu.arch.isThumb()) {
|
||||
try args.append("-mimplicit-it=always");
|
||||
}
|
||||
}
|
||||
|
||||
fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue