Skip to content

Commit

Permalink
Add macos and x86 conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Dec 9, 2023
1 parent e005c80 commit d4e8d4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Sun/sun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,18 @@ struct Project
{
val = SOUP_WINDOWS;
}
else if (condition == "macos")
{
val = SOUP_MACOS;
}
else if (condition == "linux")
{
val = SOUP_LINUX;
}
else if (condition == "x86")
{
val = SOUP_X86;
}
else if (condition == "true")
{
val = true;
Expand Down
2 changes: 1 addition & 1 deletion docs/Config (.sun file).md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if [not] <condition>
endif
```

Valid substitutions for `<condition>` are as follows: `windows`, `linux`, `true`, `false`.
Valid substitutions for `<condition>` are as follows: `windows`, `macos`, `linux`, `x86`, `true`, `false`.

An example:

Expand Down

0 comments on commit d4e8d4d

Please sign in to comment.