mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
Suppress macOS warnings in the V8 libc++ Bazel build (#59232)
Add a macOS platform condition to apply `-Wno-pragma-clang-attribute` and `-Wno-thread-safety-analysis` when compiling V8's libc++ library. GitOrigin-RevId: daa5355a081e819818ada1f86833159cfa4cf555
This commit is contained in:
committed by
copyberry
parent
8da8b0c7f7
commit
42b5b37638
Vendored
+11
@@ -8,6 +8,11 @@ config_setting(
|
||||
constraint_values = ["@platforms//os:linux"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "is_macos",
|
||||
constraint_values = ["@platforms//os:macos"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "is_windows",
|
||||
constraint_values = ["@platforms//os:windows"],
|
||||
@@ -129,6 +134,12 @@ libcxx_library(
|
||||
"@//third_party/v8:use_rusty_v8_custom_libcxx_native_windows": [],
|
||||
":is_windows": ["-Wno-macro-redefined"],
|
||||
"//conditions:default": ["-fPIC"],
|
||||
}) + select({
|
||||
":is_macos": [
|
||||
"-Wno-pragma-clang-attribute",
|
||||
"-Wno-thread-safety-analysis",
|
||||
],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
defines = [
|
||||
"CR_LIBCXX_REVISION=b16984ce99c702355a5b2b4c52574e82cec41fb9",
|
||||
|
||||
Reference in New Issue
Block a user