mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Compilation: define __illumos__ for C/C++ when targeting illumos
Per the illumos GCC fork.
This commit is contained in:
parent
c9e0df97f9
commit
67c9d57e27
1 changed files with 4 additions and 1 deletions
|
|
@ -6864,8 +6864,11 @@ fn addCommonCCArgs(
|
|||
},
|
||||
}
|
||||
|
||||
// Homebrew targets without LLVM support; use communities's preferred macros.
|
||||
switch (target.os.tag) {
|
||||
// LLVM doesn't distinguish between Solaris and illumos, but the illumos GCC fork
|
||||
// defines this macro.
|
||||
.illumos => try argv.append("__illumos__"),
|
||||
// Homebrew targets without LLVM support; use communities's preferred macros.
|
||||
.@"3ds" => try argv.append("-D__3DS__"),
|
||||
.vita => try argv.append("-D__vita__"),
|
||||
else => {},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue