mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Meta: Use -std=c++2b on mac hosts in the GN build
Xcode clang doesn't understand the -std=c++23 spelling yet, and this is what CMake's `set(CMAKE_CXX_STANDARD 23)` translates to too. Unbreaks building with Xcode clang on macOS.
This commit is contained in:
parent
2f81a3610d
commit
3435770c23
Notes:
sideshowbarker
2024-07-16 20:31:50 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/3435770c23 Pull-request: https://github.com/SerenityOS/serenity/pull/24250
1 changed files with 9 additions and 4 deletions
|
@ -89,10 +89,15 @@ config("compiler_defaults") {
|
|||
if (use_lld) {
|
||||
ldflags += [ "-Wl,--color-diagnostics" ]
|
||||
}
|
||||
cflags_cc += [
|
||||
"-std=c++23",
|
||||
"-fvisibility-inlines-hidden",
|
||||
]
|
||||
|
||||
if (current_os == "mac") {
|
||||
# FIXME: Use -std=c++23 once Xcode's clang supports that.
|
||||
cflags_cc += [ "-std=c++2b" ]
|
||||
} else {
|
||||
cflags_cc += [ "-std=c++23" ]
|
||||
}
|
||||
|
||||
cflags_cc += [ "-fvisibility-inlines-hidden" ]
|
||||
|
||||
# Warning setup.
|
||||
cflags += [
|
||||
|
|
Loading…
Add table
Reference in a new issue