Skip to content

Commit

Permalink
[gn build] Reformat all build files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nico committed Jan 15, 2020
1 parent 8e5018e commit 082962d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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 != "") {
Expand Down
1 change: 1 addition & 0 deletions llvm/utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ unittest("GlobalISelTests") {
"ConstantFoldingTest.cpp",
"GISelMITest.cpp",
"KnownBitsTest.cpp",
"LegalizerTest.cpp",
"LegalizerHelperTest.cpp",
"LegalizerInfoTest.cpp",
"LegalizerTest.cpp",
"MachineIRBuilderTest.cpp",
"PatternMatchTest.cpp",
]
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/llvm/unittests/Frontend/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion llvm/utils/gn/secondary/llvm/utils/benchmark/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}

Expand Down

0 comments on commit 082962d

Please sign in to comment.