authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-05 10:51:03+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-05 10:51:03+02:00
log79df5f015b6ba2e0895a62c24969a05ad93a55d6
tree625ec8616772c1a95fb40c76c82ecf64c51fc8bd
parent03ab50821418fac99578fd762ba1ef135671b545
parent142bd772e11697e296dcd9cda379db90b48b60a7

Merge pull request '`zig cc`: fix CPU model and features not being passed to the assembler' (#36383) from alexrp/zig:cc-asm-cpu-info into master

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36383

2 files changed, 19 insertions(+), 0 deletions(-)

src/Compilation.zig+2
......@@ -6667,6 +6667,8 @@ pub fn addCCArgs(
66676667
66686668 // Only compiled files support these flags.
66696669 switch (ext) {
6670 .assembly,
6671 .assembly_with_cpp,
66706672 .c,
66716673 .h,
66726674 .cpp,
test/tests.zig+17
......@@ -455,6 +455,23 @@ const module_test_targets = blk: {
455455 .abi = .none,
456456 },
457457 },
458 .{
459 .target = .{
460 .cpu_arch = .loongarch32,
461 .os_tag = .linux,
462 .abi = .gnu,
463 },
464 .link_libc = true,
465 },
466 .{
467 .target = .{
468 .cpu_arch = .loongarch32,
469 .os_tag = .linux,
470 .abi = .gnusf,
471 },
472 .link_libc = true,
473 .extra_target = true,
474 },
458475
459476 .{
460477 .target = .{