[gn build] Reformat all files

Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
No behavior change.
This commit is contained in:
Nico Weber 2021-11-05 10:50:24 -04:00
parent a00944ebea
commit cf838ebfa5
12 changed files with 19 additions and 16 deletions

View File

@ -370,7 +370,8 @@ config("no_rtti") {
config("zdefs") {
# -Wl,-z,defs doesn't work with sanitizers.
# https://clang.llvm.org/docs/AddressSanitizer.html
if (current_os != "ios" && current_os != "mac" && current_os != "win" && !(use_asan || use_tsan || use_ubsan)) {
if (current_os != "ios" && current_os != "mac" && current_os != "win" &&
!(use_asan || use_tsan || use_ubsan)) {
ldflags = [ "-Wl,-z,defs" ]
}
}

View File

@ -9,10 +9,10 @@ unittest("ClangReplInterpreterExceptionTests") {
deps = [
"//clang/lib/AST",
"//clang/lib/Basic",
"//clang/lib/Interpreter",
"//clang/lib/Frontend",
"//llvm/lib/IR",
"//clang/lib/Interpreter",
"//llvm/lib/ExecutionEngine/Orc",
"//llvm/lib/IR",
"//llvm/lib/Support",
"//llvm/lib/Target:TargetsToBuild",
]

View File

@ -18,9 +18,7 @@ if (android_ndk_path != "") {
]
}
group("compiler-rt") {
deps = [
"//compiler-rt/include($host_toolchain)",
]
deps = [ "//compiler-rt/include($host_toolchain)" ]
foreach(toolchain, supported_toolchains) {
deps += [ "//compiler-rt/lib($toolchain)" ]
}

View File

@ -27,9 +27,9 @@ static_library("COFF") {
"//llvm/lib/WindowsManifest",
]
sources = [
"COFFLinkerContext.cpp",
"CallGraphSort.cpp",
"Chunks.cpp",
"COFFLinkerContext.cpp",
"DLL.cpp",
"DebugTypes.cpp",
"Driver.cpp",

View File

@ -52,7 +52,7 @@ write_cmake_config("Config") {
"LLDB_ENABLE_TERMIOS=1",
]
}
if (current_os == "win" || current_os == "linux" || current_os == "android") {
values += [ "HAVE_SYS_EVENT_H=" ]
} else {

View File

@ -215,7 +215,8 @@ write_cmake_config("Plugins.def") {
# These are in separate variables to make sure ProcessWindowsCommon is
# initalized after all plugins, but before ProcessGDBRemote.
if (current_os == "win") {
values += [ "LLDB_PROCESS_WINDOWS_PLUGIN=LLDB_PLUGIN(ProcessWindowsCommon)" ]
values +=
[ "LLDB_PROCESS_WINDOWS_PLUGIN=LLDB_PLUGIN(ProcessWindowsCommon)" ]
} else {
values += [ "LLDB_PROCESS_WINDOWS_PLUGIN=" ]
}

View File

@ -9,6 +9,7 @@ static_library("JIT") {
#"//lldb/source/Target", # 2-hop dependency cycle.
"//llvm/lib/Support",
]
# For Utility/UuidCompatibility.h.
include_dirs = [ "//lldb/source" ]
sources = [ "ObjectFileJIT.cpp" ]

View File

@ -9,9 +9,10 @@ static_library("Linux") {
"//lldb/source/Core",
"//lldb/source/Host",
"//lldb/source/Interpreter",
"//lldb/source/Target",
"//lldb/source/Plugins/Platform/POSIX",
"//lldb/source/Target",
]
# Reaches into Plugins/Platform/POSIX.
include_dirs = [ "//lldb/source" ]
sources = [ "PlatformLinux.cpp" ]

View File

@ -4,13 +4,14 @@ static_library("Linux") {
deps = [
"//lldb/source/Core",
"//lldb/source/Host",
"//lldb/source/Plugins/Process/POSIX",
"//lldb/source/Plugins/Process/Utility",
"//lldb/source/Symbol",
"//lldb/source/Target",
"//lldb/source/Utility",
"//lldb/source/Plugins/Process/POSIX",
"//lldb/source/Plugins/Process/Utility",
"//llvm/lib/Support",
]
# Uses source-relative includes for own headers.
include_dirs = [ "//lldb/source" ]
sources = [
@ -26,4 +27,3 @@ static_library("Linux") {
"SingleStepCheck.cpp",
]
}

View File

@ -2,10 +2,11 @@ static_library("POSIX") {
output_name = "lldbPluginProcessPOSIX"
configs += [ "//llvm/utils/gn/build:lldb_code" ]
deps = [
"//lldb/source/Utility",
"//lldb/source/Plugins/Process/Utility",
"//lldb/source/Utility",
"//llvm/lib/Support",
]
# Reaches into Plugins/Platform/Process/Utility.
include_dirs = [ "//lldb/source" ]
sources = [

View File

@ -43,7 +43,7 @@ executable("lldb") {
if (current_os == "linux") {
deps += [ "//lldb/tools/lldb-server" ]
}
foreach (toolchain, supported_toolchains) {
foreach(toolchain, supported_toolchains) {
deps += [ "//lldb/tools/lldb-server($toolchain)" ]
}

View File

@ -18,8 +18,8 @@ executable("lldb-server") {
"//lldb/source:lldbBase",
"//lldb/source/Host",
"//lldb/source/Initialization",
"//lldb/source/Plugins/Instruction/ARM",
#"//lldb/source/Plugins/Instruction/MIPS", # XXX
#"//lldb/source/Plugins/Instruction/MIPS64", # XXX
"//llvm/lib/Option",