authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-28 10:27:29+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-31 03:38:20+02:00
logf021ad548fd8ad6c7d8d8ea7e7c409c695dce1e5
treeb4c446092931d0e6208e3d15448cf70cc8281cd4
parent2de7296262b88f3d19ad9cb75f824bf69350c717
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

musl: Build with -fno-builtin and -mimplicit-it=always (for thumb) like upstream.


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

src/musl.zig+5
...@@ -384,6 +384,7 @@ fn addCcArgs(...@@ -384,6 +384,7 @@ fn addCcArgs(
384 try args.appendSlice(&[_][]const u8{384 try args.appendSlice(&[_][]const u8{
385 "-std=c99",385 "-std=c99",
386 "-ffreestanding",386 "-ffreestanding",
387 "-fno-builtin",
387 "-fexcess-precision=standard",388 "-fexcess-precision=standard",
388 "-frounding-math",389 "-frounding-math",
389 "-fno-strict-aliasing",390 "-fno-strict-aliasing",
...@@ -422,6 +423,10 @@ fn addCcArgs(...@@ -422,6 +423,10 @@ fn addCcArgs(
422 "-Qunused-arguments",423 "-Qunused-arguments",
423 "-w", // disable all warnings424 "-w", // disable all warnings
424 });425 });
426
427 if (target.cpu.arch.isThumb()) {
428 try args.append("-mimplicit-it=always");
429 }
425}430}
426431
427fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 {432fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 {