| author | |
| committer | |
| log | 79df5f015b6ba2e0895a62c24969a05ad93a55d6 |
| tree | 625ec8616772c1a95fb40c76c82ecf64c51fc8bd |
| parent | 03ab50821418fac99578fd762ba1ef135671b545 |
| parent | 142bd772e11697e296dcd9cda379db90b48b60a7 |
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/363832 files changed, 19 insertions(+), 0 deletions(-)
src/Compilation.zig+2| ... | @@ -6667,6 +6667,8 @@ pub fn addCCArgs( | ... | @@ -6667,6 +6667,8 @@ pub fn addCCArgs( |
| 6667 | 6667 | ||
| 6668 | // Only compiled files support these flags. | 6668 | // Only compiled files support these flags. |
| 6669 | switch (ext) { | 6669 | switch (ext) { |
| 6670 | .assembly, | ||
| 6671 | .assembly_with_cpp, | ||
| 6670 | .c, | 6672 | .c, |
| 6671 | .h, | 6673 | .h, |
| 6672 | .cpp, | 6674 | .cpp, |
test/tests.zig+17| ... | @@ -455,6 +455,23 @@ const module_test_targets = blk: { | ... | @@ -455,6 +455,23 @@ const module_test_targets = blk: { |
| 455 | .abi = .none, | 455 | .abi = .none, |
| 456 | }, | 456 | }, |
| 457 | }, | 457 | }, |
| 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 | }, | ||
| 458 | 475 | ||
| 459 | .{ | 476 | .{ |
| 460 | .target = .{ | 477 | .target = .{ |