authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-26 09:50:55+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-26 09:51:35+01:00
log67c9d57e2735d4ad9846127d2fa140e61b945ee4
tree74cd44824ab09f0c89dec14bbe8be8ae8b401f62
parentc9e0df97f9f3cb4fff92769d0715ebba9e31be44
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: define __illumos__ for C/C++ when targeting illumos

Per the illumos GCC fork.

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

src/Compilation.zig+4-1
...@@ -6864,8 +6864,11 @@ fn addCommonCCArgs(...@@ -6864,8 +6864,11 @@ fn addCommonCCArgs(
6864 },6864 },
6865 }6865 }
68666866
6867 // Homebrew targets without LLVM support; use communities's preferred macros.
6868 switch (target.os.tag) {6867 switch (target.os.tag) {
6868 // LLVM doesn't distinguish between Solaris and illumos, but the illumos GCC fork
6869 // defines this macro.
6870 .illumos => try argv.append("__illumos__"),
6871 // Homebrew targets without LLVM support; use communities's preferred macros.
6869 .@"3ds" => try argv.append("-D__3DS__"),6872 .@"3ds" => try argv.append("-D__3DS__"),
6870 .vita => try argv.append("-D__vita__"),6873 .vita => try argv.append("-D__vita__"),
6871 else => {},6874 else => {},