mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:15:06 +00:00
Everywhere: Replace uses of __serenity__ with AK_OS_SERENITY
Now that we have OS macros for essentially every supported OS, let's try to use them everywhere.
This commit is contained in:
parent
896d4e8dc1
commit
828441852f
46 changed files with 118 additions and 113 deletions
|
@ -81,7 +81,7 @@ int main(int argc, char** argv)
|
|||
|
||||
bool print_times = false;
|
||||
bool print_progress =
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
true; // Use OSC 9 to print progress
|
||||
#else
|
||||
false;
|
||||
|
@ -140,7 +140,7 @@ int main(int argc, char** argv)
|
|||
if (specified_test_root) {
|
||||
test_root = String { specified_test_root };
|
||||
} else {
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
test_root = LexicalPath::join("/home/anon/Tests"sv, String::formatted("{}-tests", program_name.split_view('-').last())).string();
|
||||
#else
|
||||
char* serenity_source_dir = getenv("SERENITY_SOURCE_DIR");
|
||||
|
@ -158,7 +158,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
if (common_path.is_empty()) {
|
||||
#ifdef __serenity__
|
||||
#ifdef AK_OS_SERENITY
|
||||
common_path = "/home/anon/Tests/js-tests/test-common.js";
|
||||
#else
|
||||
char* serenity_source_dir = getenv("SERENITY_SOURCE_DIR");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue