[gn build] Reformat all gn files

Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
This commit is contained in:
Nico Weber 2021-07-22 21:35:35 -04:00
parent 393116faad
commit 377320fe80
9 changed files with 18 additions and 14 deletions

View File

@ -306,7 +306,10 @@ config("compiler_defaults") {
if (use_ubsan) { if (use_ubsan) {
assert(is_clang && current_os == "linux", assert(is_clang && current_os == "linux",
"ubsan only supported on Linux/Clang") "ubsan only supported on Linux/Clang")
cflags += [ "-fsanitize=undefined", "-fno-sanitize-recover=all" ] cflags += [
"-fsanitize=undefined",
"-fno-sanitize-recover=all",
]
ldflags += [ "-fsanitize=undefined" ] ldflags += [ "-fsanitize=undefined" ]
} }

View File

@ -52,8 +52,8 @@ source_set("sources") {
"hwasan_dynamic_shadow.cpp", "hwasan_dynamic_shadow.cpp",
"hwasan_dynamic_shadow.h", "hwasan_dynamic_shadow.h",
"hwasan_exceptions.cpp", "hwasan_exceptions.cpp",
"hwasan_fuchsia.cpp",
"hwasan_flags.h", "hwasan_flags.h",
"hwasan_fuchsia.cpp",
"hwasan_globals.cpp", "hwasan_globals.cpp",
"hwasan_globals.h", "hwasan_globals.h",
"hwasan_interceptors.cpp", "hwasan_interceptors.cpp",

View File

@ -17,8 +17,8 @@ source_set("sources") {
"checksum.h", "checksum.h",
"chunk.h", "chunk.h",
"combined.h", "combined.h",
"common.h",
"common.cpp", "common.cpp",
"common.h",
"crc32_hw.cpp", "crc32_hw.cpp",
"flags.cpp", "flags.cpp",
"flags.h", "flags.h",

View File

@ -58,8 +58,8 @@ static_library("LLVMARMCodeGen") {
"//llvm/lib/Support", "//llvm/lib/Support",
"//llvm/lib/Target", "//llvm/lib/Target",
"//llvm/lib/Transforms/CFGuard", "//llvm/lib/Transforms/CFGuard",
"//llvm/lib/Transforms/Utils",
"//llvm/lib/Transforms/IPO", "//llvm/lib/Transforms/IPO",
"//llvm/lib/Transforms/Utils",
] ]
include_dirs = [ "." ] include_dirs = [ "." ]
sources = [ sources = [

View File

@ -19,8 +19,8 @@ group("symlinks") {
executable("llvm-dwp") { executable("llvm-dwp") {
deps = [ deps = [
"//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/DWP", "//llvm/lib/DWP",
"//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/MC", "//llvm/lib/MC",
"//llvm/lib/Object", "//llvm/lib/Object",
"//llvm/lib/Support", "//llvm/lib/Support",

View File

@ -4,7 +4,5 @@ executable("llvm-sim") {
"//llvm/lib/IRReader", "//llvm/lib/IRReader",
"//llvm/lib/Support", "//llvm/lib/Support",
] ]
sources = [ sources = [ "llvm-sim.cpp" ]
"llvm-sim.cpp",
]
} }

View File

@ -5,7 +5,7 @@ executable("llvm-tapi-diff") {
"//llvm/lib/TextAPI", "//llvm/lib/TextAPI",
] ]
sources = [ sources = [
"llvm-tapi-diff.cpp",
"DiffEngine.cpp", "DiffEngine.cpp",
"llvm-tapi-diff.cpp",
] ]
} }

View File

@ -2,12 +2,11 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("MIRTests") { unittest("MIRTests") {
deps = [ deps = [
"//llvm/lib/CodeGen", "//llvm/lib/CodeGen",
"//llvm/lib/IR",
"//llvm/lib/FileCheck",
"//llvm/lib/MC",
"//llvm/lib/CodeGen/MIRParser", "//llvm/lib/CodeGen/MIRParser",
"//llvm/lib/FileCheck",
"//llvm/lib/IR",
"//llvm/lib/MC",
"//llvm/lib/Support", "//llvm/lib/Support",
"//llvm/lib/Target", "//llvm/lib/Target",
"//llvm/lib/Target:TargetsToBuild", "//llvm/lib/Target:TargetsToBuild",

View File

@ -3,7 +3,11 @@ import("//llvm/utils/unittest/unittest.gni")
# Keyed off LLVM_ENABLE_PLUGINS in the CMake build, which is usually false # Keyed off LLVM_ENABLE_PLUGINS in the CMake build, which is usually false
# on Windows and true elsewhere. # on Windows and true elsewhere.
if (host_os != "win") { if (host_os != "win") {
foreach(plugin, ["TestPlugin", "DoublerPlugin"]) { foreach(plugin,
[
"TestPlugin",
"DoublerPlugin",
]) {
loadable_module(plugin) { loadable_module(plugin) {
# Put plugin next to the unit test executable. # Put plugin next to the unit test executable.
output_dir = target_out_dir output_dir = target_out_dir