mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +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:
committed by
Linus Groh
parent
896d4e8dc1
commit
828441852f
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user