From bddd915dd92abbf106a9dc5600782c3fd61b0a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 4 Aug 2026 20:40:01 +0200 Subject: [PATCH 1/2] zig cc: fix CPU model and features not being passed to the assembler --- src/Compilation.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Compilation.zig b/src/Compilation.zig index 0952e9f7dc05456c4a8d4e6cbc35fa17d14ef484..56a245a1e0769f915aa25c6d7daeb3d0d10716de 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6663,6 +6663,8 @@ pub fn addCCArgs( // Only compiled files support these flags. switch (ext) { + .assembly, + .assembly_with_cpp, .c, .h, .cpp, -- 2.54.0 From 142bd772e11697e296dcd9cda379db90b48b60a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 4 Aug 2026 20:23:17 +0200 Subject: [PATCH 2/2] test: add loongarch32-linux-gnu[sf] to module test matrix --- test/tests.zig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/tests.zig b/test/tests.zig index 90442edf52c9135eaf901c075828191cae6e45f3..8cd22d3b8fff0b09d9a9ac96dc8fe02184df5eab 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -455,6 +455,23 @@ const module_test_targets = blk: { .abi = .none, }, }, + .{ + .target = .{ + .cpu_arch = .loongarch32, + .os_tag = .linux, + .abi = .gnu, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .loongarch32, + .os_tag = .linux, + .abi = .gnusf, + }, + .link_libc = true, + .extra_target = true, + }, .{ .target = .{ -- 2.54.0