[bazel] Add -Wno-vla-cxx-extension to macOS lldb srcs (#185945)
```
lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp:88:20: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
88 | int dispositions[dispositions_size];
| ^~~~~~~~~~~~~~~~~
```
This code contains objc++ which can only be compiled with clang anyways.
This commit is contained in:
parent
ed42ac3c4c
commit
cfcc50a732
@ -979,6 +979,9 @@ cc_library(
|
||||
["tools/debugserver/source/**/*.cpp"],
|
||||
exclude = ["tools/debugserver/source/debugserver.cpp"],
|
||||
),
|
||||
copts = [
|
||||
"-Wno-vla-cxx-extension",
|
||||
],
|
||||
local_defines = ["LLDB_USE_OS_LOG"],
|
||||
tags = ["nobuildkite"],
|
||||
deps = [
|
||||
@ -1022,6 +1025,9 @@ cc_binary(
|
||||
":debugserver_version_gen",
|
||||
":mach_gen",
|
||||
],
|
||||
copts = [
|
||||
"-Wno-vla-cxx-extension",
|
||||
],
|
||||
tags = ["nobuildkite"],
|
||||
target_compatible_with = select({
|
||||
"@platforms//os:macos": [],
|
||||
|
||||
@ -103,4 +103,5 @@ OBJCPP_COPTS = [
|
||||
"-std=c++{}".format(CMAKE_CXX_STANDARD),
|
||||
"-fno-objc-exceptions",
|
||||
"-Wno-shorten-64-to-32",
|
||||
"-Wno-vla-cxx-extension",
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user