[llvm] 082962d - [gn build] Reformat all build files
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 10:00:34 PST 2020
Author: Nico Weber
Date: 2020-01-15T12:59:45-05:00
New Revision: 082962dec846a30fbf129388e4821b9018fd2876
URL: https://github.com/llvm/llvm-project/commit/082962dec846a30fbf129388e4821b9018fd2876
DIFF: https://github.com/llvm/llvm-project/commit/082962dec846a30fbf129388e4821b9018fd2876.diff
LOG: [gn build] Reformat all build files
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
The motivation is to reformat them with trunk gn again right after.
Trunk gn changed formatting of some single-element lists.
Added:
Modified:
llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
llvm/utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/CodeGen/GlobalISel/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Frontend/BUILD.gn
llvm/utils/gn/secondary/llvm/utils/benchmark/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
index a4286740bb30..1143b265a377 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
@@ -1,7 +1,7 @@
import("//llvm/utils/gn/build/toolchain/compiler.gni")
supported_toolchains = []
-if (target_os == "linux" || target_os == "fuchsia") {
+if (target_os == "linux" || target_os == "fuchsia") {
supported_toolchains += [ "//llvm/utils/gn/build/toolchain:stage2_unix" ]
}
if (android_ndk_path != "") {
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn
index 6991ac729284..2242098d4b4e 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn
@@ -14,6 +14,7 @@ action("write_extension_def") {
outputs = [
"$target_gen_dir/Extension.def",
]
+
# If any extensions should be enabled, they'd be passed as additional
# arguments, e.g. `args += [ "Bye", "Polly" ]`.
args = [
diff --git a/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
index cab353ee03d8..1110da86697a 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
@@ -1,9 +1,9 @@
static_library("OpenMP") {
output_name = "LLVMFrontendOpenMP"
deps = [
- "//llvm/lib/Transforms/Utils",
"//llvm/lib/IR",
"//llvm/lib/Support",
+ "//llvm/lib/Transforms/Utils",
]
sources = [
"OMPConstants.cpp",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/CodeGen/GlobalISel/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/CodeGen/GlobalISel/BUILD.gn
index 4a042fdf1891..8ac5c8b8d245 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/CodeGen/GlobalISel/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/CodeGen/GlobalISel/BUILD.gn
@@ -16,9 +16,9 @@ unittest("GlobalISelTests") {
"ConstantFoldingTest.cpp",
"GISelMITest.cpp",
"KnownBitsTest.cpp",
- "LegalizerTest.cpp",
"LegalizerHelperTest.cpp",
"LegalizerInfoTest.cpp",
+ "LegalizerTest.cpp",
"MachineIRBuilderTest.cpp",
"PatternMatchTest.cpp",
]
diff --git a/llvm/utils/gn/secondary/llvm/unittests/Frontend/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/Frontend/BUILD.gn
index bf37b9f4c2a1..08731d9e6358 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/Frontend/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/Frontend/BUILD.gn
@@ -3,8 +3,8 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("LLVMFrontendTests") {
deps = [
"//llvm/lib/Analysis",
- "//llvm/lib/IR",
"//llvm/lib/Frontend/OpenMP",
+ "//llvm/lib/IR",
"//llvm/lib/Passes",
"//llvm/lib/Support",
"//llvm/lib/Testing/Support",
diff --git a/llvm/utils/gn/secondary/llvm/utils/benchmark/BUILD.gn b/llvm/utils/gn/secondary/llvm/utils/benchmark/BUILD.gn
index 39f5a226e55b..08af5bce9162 100644
--- a/llvm/utils/gn/secondary/llvm/utils/benchmark/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/utils/benchmark/BUILD.gn
@@ -16,7 +16,9 @@ static_library("benchmark") {
"src/sysinfo.cc",
"src/timers.cc",
]
- deps = [ "//llvm/utils/gn/build/libs/pthread" ]
+ deps = [
+ "//llvm/utils/gn/build/libs/pthread",
+ ]
public_configs = [ ":benchmark_config" ]
}
More information about the llvm-commits
mailing list