authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2026-10-03 15:21:29+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-04 18:20:31+02:00
log245d477879b3b1646ef42c53317e94464325ccaa
treeb0e03d7f69152285f6af16267501b360c65a59dc
parent6308eab0a277a187abe8073e33c2b6db5b097418
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: Fix faulty target macro CC flags

For serenity this is a regression in 0.17.0, see 537e455b4f3. For illumos it's been around for longer, see 67c9d57e273.

1 files changed, 2 insertions(+), 2 deletions(-)

src/Compilation.zig+2-2
...@@ -6388,9 +6388,9 @@ fn addCommonCCArgs(...@@ -6388,9 +6388,9 @@ fn addCommonCCArgs(
6388 switch (target.os.tag) {6388 switch (target.os.tag) {
6389 // LLVM doesn't distinguish between Solaris and illumos, but the illumos GCC fork6389 // LLVM doesn't distinguish between Solaris and illumos, but the illumos GCC fork
6390 // defines this macro.6390 // defines this macro.
6391 .illumos => try argv.append("__illumos__"),6391 .illumos => try argv.append("-D__illumos__"),
6392 // This macro has not yet been upstreamed by SerenityOS to Clang.6392 // This macro has not yet been upstreamed by SerenityOS to Clang.
6393 .serenity => try argv.append("__serenity__"),6393 .serenity => try argv.append("-D__serenity__"),
6394 // Homebrew targets without LLVM support; use communities's preferred macros.6394 // Homebrew targets without LLVM support; use communities's preferred macros.
6395 .@"3ds" => try argv.append("-D__3DS__"),6395 .@"3ds" => try argv.append("-D__3DS__"),
6396 .wiiu => try argv.append("-D__WIIU__"),6396 .wiiu => try argv.append("-D__WIIU__"),