1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

[gn build] re-run "gn format" with trunk gn

This commit is contained in:
Nico Weber 2020-01-15 13:35:58 -05:00
parent d9e1114f21
commit 31a3e4d169
87 changed files with 173 additions and 493 deletions

View File

@ -10,9 +10,7 @@ template("symlink_or_copy") {
# https://github.com/ninja-build/ninja/issues/1186
stamp =
"$target_gen_dir/" + get_path_info(invoker.output, "file") + ".stamp"
outputs = [
stamp,
]
outputs = [ stamp ]
script = "//llvm/utils/gn/build/symlink_or_copy.py"
args = [
"--stamp",

View File

@ -18,9 +18,7 @@ template("unix_toolchain") {
command = "$cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
depsformat = "gcc"
description = "CC {{output}}"
outputs = [
"{{source_out_dir}}/{{label_name}}.{{source_name_part}}.o",
]
outputs = [ "{{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ]
}
tool("cxx") {
@ -28,9 +26,7 @@ template("unix_toolchain") {
command = "$cxx -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
depsformat = "gcc"
description = "CXX {{output}}"
outputs = [
"{{source_out_dir}}/{{label_name}}.{{source_name_part}}.o",
]
outputs = [ "{{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ]
}
tool("asm") {
@ -38,9 +34,7 @@ template("unix_toolchain") {
command = "$cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{asmflags}}"
depsformat = "gcc"
description = "ASM {{output}}"
outputs = [
"{{source_out_dir}}/{{label_name}}.{{source_name_part}}.o",
]
outputs = [ "{{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ]
}
tool("alink") {
@ -53,9 +47,7 @@ template("unix_toolchain") {
"rm -f {{output}} && $ar rcsD {{arflags}} {{output}} {{inputs}}"
}
description = "AR {{output}}"
outputs = [
"{{output_dir}}/{{target_output_name}}.a",
]
outputs = [ "{{output_dir}}/{{target_output_name}}.a" ]
output_prefix = "lib"
default_output_dir = "{{root_out_dir}}/lib"
}
@ -70,9 +62,7 @@ template("unix_toolchain") {
default_output_extension = ".so"
}
description = "SOLINK $outfile"
outputs = [
outfile,
]
outputs = [ outfile ]
lib_switch = "-l"
output_prefix = "lib"
default_output_dir = "{{root_out_dir}}/lib"
@ -88,9 +78,7 @@ template("unix_toolchain") {
default_output_extension = ".so"
}
description = "SOLINK $outfile"
outputs = [
outfile,
]
outputs = [ outfile ]
lib_switch = "-l"
default_output_dir = "{{root_out_dir}}/lib"
}
@ -103,9 +91,7 @@ template("unix_toolchain") {
command = "$ld {{ldflags}} -o $outfile {{libs}} -Wl,--start-group {{inputs}} -Wl,--end-group"
}
description = "LINK $outfile"
outputs = [
outfile,
]
outputs = [ outfile ]
lib_switch = "-l"
# Setting this allows targets to override the default executable output by
@ -237,26 +223,20 @@ toolchain("win") {
command = "$cl /nologo /showIncludes /Fo{{output}} /c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
depsformat = "msvc"
description = "CC {{output}}"
outputs = [
"{{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj",
]
outputs = [ "{{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj" ]
}
tool("cxx") {
command = "$cl /nologo /showIncludes /Fo{{output}} /c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
depsformat = "msvc"
description = "CXX {{output}}"
outputs = [
"{{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj",
]
outputs = [ "{{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj" ]
}
tool("alink") {
command = "$link /lib /nologo {{arflags}} /out:{{output}} {{inputs}}"
description = "LIB {{output}}"
outputs = [
"{{output_dir}}/{{target_output_name}}.lib",
]
outputs = [ "{{output_dir}}/{{target_output_name}}.lib" ]
default_output_dir = "{{root_out_dir}}/lib"
}
@ -294,9 +274,7 @@ toolchain("win") {
pdbfile = "$outprefix.pdb"
command = "$link /nologo /dll {{ldflags}} /out:$dllfile /pdb:$pdbfile {{libs}} {{inputs}}"
description = "LINK_MODULE $dllfile"
outputs = [
dllfile,
]
outputs = [ dllfile ]
lib_switch = ""
runtime_outputs = outputs
default_output_extension = ".dll"
@ -310,9 +288,7 @@ toolchain("win") {
pdbfile = "$outprefix.pdb"
command = "$link /nologo {{ldflags}} /out:$outfile /pdb:$pdbfile {{libs}} {{inputs}}"
description = "LINK $outfile"
outputs = [
outfile,
]
outputs = [ outfile ]
lib_switch = ""
default_output_extension = ".exe"

View File

@ -30,12 +30,8 @@ template("write_cmake_config") {
action(target_name) {
script = "//llvm/utils/gn/build/write_cmake_config.py"
sources = [
invoker.input,
]
outputs = [
invoker.output,
]
sources = [ invoker.input ]
outputs = [ invoker.output ]
args = [
"-o",
rebase_path(outputs[0], root_build_dir),

View File

@ -41,9 +41,7 @@ template("write_vcsrevision") {
args += [ "--name=$name" ]
}
outputs = [
header,
]
outputs = [ header ]
forward_variables_from(invoker,
[

View File

@ -51,64 +51,40 @@ group("default") {
# new locations).
# That seems simpler, more explicit, and good enough.
group("clang") {
deps = [
"//clang/tools/driver:symlinks",
]
deps = [ "//clang/tools/driver:symlinks" ]
}
group("lld") {
deps = [
"//lld/tools/lld:symlinks",
]
deps = [ "//lld/tools/lld:symlinks" ]
}
group("llvm-ar") {
deps = [
"//llvm/tools/llvm-ar:symlinks",
]
deps = [ "//llvm/tools/llvm-ar:symlinks" ]
}
group("llvm-dwp") {
deps = [
"//llvm/tools/llvm-dwp:symlinks",
]
deps = [ "//llvm/tools/llvm-dwp:symlinks" ]
}
group("llvm-nm") {
deps = [
"//llvm/tools/llvm-nm:symlinks",
]
deps = [ "//llvm/tools/llvm-nm:symlinks" ]
}
group("llvm-cxxfilt") {
deps = [
"//llvm/tools/llvm-cxxfilt:symlinks",
]
deps = [ "//llvm/tools/llvm-cxxfilt:symlinks" ]
}
group("llvm-objcopy") {
deps = [
"//llvm/tools/llvm-objcopy:symlinks",
]
deps = [ "//llvm/tools/llvm-objcopy:symlinks" ]
}
group("llvm-objdump") {
deps = [
"//llvm/tools/llvm-objdump:symlinks",
]
deps = [ "//llvm/tools/llvm-objdump:symlinks" ]
}
group("llvm-readobj") {
deps = [
"//llvm/tools/llvm-readobj:symlinks",
]
deps = [ "//llvm/tools/llvm-readobj:symlinks" ]
}
group("llvm-size") {
deps = [
"//llvm/tools/llvm-size:symlinks",
]
deps = [ "//llvm/tools/llvm-size:symlinks" ]
}
group("llvm-strings") {
deps = [
"//llvm/tools/llvm-strings:symlinks",
]
deps = [ "//llvm/tools/llvm-strings:symlinks" ]
}
group("llvm-symbolizer") {
deps = [
"//llvm/tools/llvm-symbolizer:symlinks",
]
deps = [ "//llvm/tools/llvm-symbolizer:symlinks" ]
}
# A pool called "console" in the root BUILD.gn is magic and represents ninja's

View File

@ -95,17 +95,13 @@ action("check-clangd") {
rebase_path(get_path_info(clangd_lit_unit_site_cfg_file, "dir"),
root_out_dir),
]
outputs = [
"$target_gen_dir/run-lit", # Non-existing, so that ninja runs it each time.
]
outputs = [ "$target_gen_dir/run-lit" ] # Non-existing, so that ninja runs it each time.
# Since check-clangd is always dirty, //:default doesn't depend on it so
# that it's not part of the default ninja target. Hence, check-clangd
# shouldn't have any deps except :test. so that the default target is sure to
# build all the deps.
deps = [
":test",
]
deps = [ ":test" ]
testonly = true
pool = "//:console"

View File

@ -21,27 +21,15 @@ write_cmake_config("XPCServiceInfo.plist") {
}
bundle_data("clangxpc_bundle_xpc_service_info_plist") {
public_deps = [
":XPCServiceInfo.plist",
]
sources = [
"$target_gen_dir/XPCServiceInfo.plist",
]
outputs = [
"{{bundle_contents_dir}}/Info.plist",
]
public_deps = [ ":XPCServiceInfo.plist" ]
sources = [ "$target_gen_dir/XPCServiceInfo.plist" ]
outputs = [ "{{bundle_contents_dir}}/Info.plist" ]
}
bundle_data("clangxpc_bundle_xpc_service_executable") {
public_deps = [
"//clang-tools-extra/clangd/tool:clangd",
]
sources = [
"$root_out_dir/bin/clangd",
]
outputs = [
"{{bundle_executable_dir}}/{{source_file_part}}",
]
public_deps = [ "//clang-tools-extra/clangd/tool:clangd" ]
sources = [ "$root_out_dir/bin/clangd" ]
outputs = [ "{{bundle_executable_dir}}/{{source_file_part}}" ]
}
create_bundle("clangd.xpc") {
@ -68,21 +56,13 @@ write_cmake_config("Info.plist") {
}
bundle_data("clangdxpc_bundle_info_plist") {
public_deps = [
":Info.plist",
]
sources = [
"$target_gen_dir/Info.plist",
]
outputs = [
"{{bundle_resources_dir}}/{{source_file_part}}",
]
public_deps = [ ":Info.plist" ]
sources = [ "$target_gen_dir/Info.plist" ]
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
shared_library("ClangdXPCLib") {
deps = [
"//clang-tools-extra/clangd/tool:clangd",
]
deps = [ "//clang-tools-extra/clangd/tool:clangd" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"ClangdXPC.cpp",
@ -90,27 +70,15 @@ shared_library("ClangdXPCLib") {
}
bundle_data("clangdxpc_bundle_executable") {
public_deps = [
":ClangdXPCLib",
]
sources = [
"$root_out_dir/lib/libClangdXPCLib.dylib",
]
outputs = [
"{{bundle_executable_dir}}/ClangdXPC",
]
public_deps = [ ":ClangdXPCLib" ]
sources = [ "$root_out_dir/lib/libClangdXPCLib.dylib" ]
outputs = [ "{{bundle_executable_dir}}/ClangdXPC" ]
}
bundle_data("clangdxpc_bundle_xpc") {
public_deps = [
":clangd.xpc",
]
sources = [
"$target_gen_dir/clangd.xpc",
]
outputs = [
"{{bundle_contents_dir}}/XPCServices/{{source_file_part}}",
]
public_deps = [ ":clangd.xpc" ]
sources = [ "$target_gen_dir/clangd.xpc" ]
outputs = [ "{{bundle_contents_dir}}/XPCServices/{{source_file_part}}" ]
}
# .framework bundle symlinks:

View File

@ -98,17 +98,13 @@ action("check-clang-tools") {
rebase_path(clang_tools_extra_lit_unit_site_cfg_file, root_out_dir),
rebase_path(".", root_out_dir),
]
outputs = [
"$target_gen_dir/run-lit", # Non-existing, so that ninja runs it each time.
]
outputs = [ "$target_gen_dir/run-lit" ] # Non-existing, so that ninja runs it each time.
# Since check-clang-tools is always dirty, //:default doesn't depend on it so
# that it's not part of the default ninja target. Hence, check-clang-tools
# shouldn't have any deps except :test. so that the default target is sure to
# build all the deps.
deps = [
":test",
]
deps = [ ":test" ]
testonly = true
pool = "//:console"

View File

@ -31,15 +31,11 @@ copy("arm_headers") {
]
sources = get_target_outputs(":arm_neon") + get_target_outputs(":arm_fp16") +
get_target_outputs(":arm_mve")
outputs = [
"$clang_resource_dir/include/{{source_file_part}}",
]
outputs = [ "$clang_resource_dir/include/{{source_file_part}}" ]
}
copy("Headers") {
deps = [
":arm_headers",
]
deps = [ ":arm_headers" ]
# NOSORT
# Tell `gn format` to not reorder the sources list: Its order matches CMake,
@ -182,7 +178,5 @@ copy("Headers") {
"openmp_wrappers/__clang_openmp_math.h",
"openmp_wrappers/__clang_openmp_math_declares.h",
]
outputs = [
"$clang_resource_dir/include/{{source_target_relative}}",
]
outputs = [ "$clang_resource_dir/include/{{source_target_relative}}" ]
}

View File

@ -192,17 +192,13 @@ action("check-clang") {
rebase_path(clang_lit_unit_site_cfg_file, root_out_dir),
rebase_path(".", root_out_dir),
]
outputs = [
"$target_gen_dir/run-lit", # Non-existing, so that ninja runs it each time.
]
outputs = [ "$target_gen_dir/run-lit" ] # Non-existing, so that ninja runs it each time.
# Since check-clang is always dirty, //:default doesn't depend on it so that
# it's not part of the default ninja target. Hence, check-clang shouldn't
# have any deps except :test. so that the default target is sure to build
# all the deps.
deps = [
":test",
]
deps = [ ":test" ]
testonly = true
pool = "//:console"

View File

@ -1,8 +1,6 @@
executable("c-arcmt-test") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/tools/libclang",
]
deps = [ "//clang/tools/libclang" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"c-arcmt-test.c",

View File

@ -19,9 +19,7 @@ symlinks = [
]
foreach(target, symlinks) {
symlink_or_copy(target[0]) {
deps = [
":clang",
]
deps = [ ":clang" ]
source = "clang"
output = "$root_out_dir/bin/${target[1]}"
}

View File

@ -2,9 +2,7 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("libclangTests") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/tools/libclang",
]
deps = [ "//clang/tools/libclang" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"LibclangTest.cpp",

View File

@ -2,9 +2,7 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("libclangCrashTests") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/tools/libclang",
]
deps = [ "//clang/tools/libclang" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"LibclangCrashTest.cpp",

View File

@ -1,8 +1,4 @@
copy("hmaptool") {
sources = [
"hmaptool",
]
outputs = [
"$root_out_dir/bin/{{source_file_part}}",
]
sources = [ "hmaptool" ]
outputs = [ "$root_out_dir/bin/{{source_file_part}}" ]
}

View File

@ -22,7 +22,5 @@ copy("include") {
"xray/xray_log_interface.h",
"xray/xray_records.h",
]
outputs = [
"$clang_resource_dir/include/{{source_target_relative}}",
]
outputs = [ "$clang_resource_dir/include/{{source_target_relative}}" ]
}

View File

@ -10,10 +10,6 @@ source_set("sources") {
}
copy("blacklist") {
sources = [
"cfi_blacklist.txt",
]
outputs = [
"$clang_resource_dir/share/{{source_target_relative}}",
]
sources = [ "cfi_blacklist.txt" ]
outputs = [ "$clang_resource_dir/share/{{source_target_relative}}" ]
}

View File

@ -2,16 +2,12 @@ import("//compiler-rt/target.gni")
action("version_script") {
script = "//compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py"
sources = [
"hwasan.syms.extra",
]
sources = [ "hwasan.syms.extra" ]
deps = [
":hwasan",
":hwasan_cxx",
]
outputs = [
"$target_gen_dir/hwasan.vers",
]
outputs = [ "$target_gen_dir/hwasan.vers" ]
args = [
"--version-list",
"--extra",
@ -71,9 +67,7 @@ source_set("sources") {
source_set("cxx_sources") {
configs -= [ "//llvm/utils/gn/build:llvm_code" ]
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
"//compiler-rt/lib/ubsan:cxx_sources",
]
deps = [ "//compiler-rt/lib/ubsan:cxx_sources" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"hwasan_new_delete.cpp",
@ -89,9 +83,7 @@ static_library("hwasan") {
"//llvm/utils/gn/build:thin_archive",
]
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
":sources",
]
deps = [ ":sources" ]
}
static_library("hwasan_cxx") {
@ -103,9 +95,7 @@ static_library("hwasan_cxx") {
"//llvm/utils/gn/build:thin_archive",
]
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
":cxx_sources",
]
deps = [ ":cxx_sources" ]
}
shared_library("hwasan_shared") {
@ -118,9 +108,7 @@ shared_library("hwasan_shared") {
":sources",
":version_script",
]
inputs = [
"$target_gen_dir/hwasan.vers",
]
inputs = [ "$target_gen_dir/hwasan.vers" ]
ldflags = [
"-Wl,--version-script," + rebase_path(inputs[0], root_build_dir),
"-Wl,-z,global",

View File

@ -1,9 +1,7 @@
source_set("sources") {
configs -= [ "//llvm/utils/gn/build:llvm_code" ]
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
"//compiler-rt/lib/sanitizer_common:sources",
]
deps = [ "//compiler-rt/lib/sanitizer_common:sources" ]
sources = [
"interception.h",
"interception_linux.cpp",

View File

@ -1,9 +1,7 @@
source_set("sources") {
configs -= [ "//llvm/utils/gn/build:llvm_code" ]
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
"//llvm/utils/gn/build/libs/pthread",
]
deps = [ "//llvm/utils/gn/build/libs/pthread" ]
libs = []
if (current_os == "linux" || current_os == "android") {
libs += [ "dl" ]
@ -168,9 +166,7 @@ source_set("sources") {
source_set("nolibc_sources") {
configs -= [ "//llvm/utils/gn/build:llvm_code" ]
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
"//llvm/utils/gn/build/libs/pthread",
]
deps = [ "//llvm/utils/gn/build/libs/pthread" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"sanitizer_common_nolibc.cpp",

View File

@ -3,9 +3,7 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("ScudoUnitTest") {
configs += [ "//llvm/utils/gn/build:crt_code" ]
deps = [
"//compiler-rt/lib/scudo/standalone:sources",
]
deps = [ "//compiler-rt/lib/scudo/standalone:sources" ]
sources = [
"atomic_test.cpp",
"bytemap_test.cpp",

View File

@ -81,17 +81,13 @@ if (supported_toolchains != []) {
get_label_info(":lit_site_cfg($toolchain)", "target_gen_dir"),
root_build_dir) ]
}
outputs = [
"$target_gen_dir/run-lit", # Non-existing, so that ninja runs it each time.
]
outputs = [ "$target_gen_dir/run-lit" ] # Non-existing, so that ninja runs it each time.
# Since check-hwasan is always dirty, //:default doesn't depend on it so that
# it's not part of the default ninja target. Hence, check-hwasan shouldn't
# have any deps except :hwasan. so that the default target is sure to build
# all the deps.
deps = [
":hwasan",
]
deps = [ ":hwasan" ]
testonly = true
pool = "//:console"

View File

@ -35,30 +35,20 @@ if (libcxx_needs_site_config) {
"$target_gen_dir/__config_site",
"__config",
]
outputs = [
"$target_gen_dir/__config",
]
outputs = [ "$target_gen_dir/__config" ]
args = [
"$target_gen_dir/__config_site",
"__config",
"-o",
"$target_gen_dir/__config",
]
deps = [
":write_config",
]
deps = [ ":write_config" ]
}
copy("copy_config") {
sources = [
"$target_gen_dir/__config",
]
outputs = [
"$clang_resource_dir/include/c++/v1/{{source_file_part}}",
]
deps = [
":concat_config",
]
sources = [ "$target_gen_dir/__config" ]
outputs = [ "$clang_resource_dir/include/c++/v1/{{source_file_part}}" ]
deps = [ ":concat_config" ]
}
}
@ -220,9 +210,7 @@ copy("include") {
"wchar.h",
"wctype.h",
]
deps = [
"//libcxxabi/include",
]
deps = [ "//libcxxabi/include" ]
if (!libcxx_needs_site_config) {
sources += [ "__config" ]
} else {
@ -252,7 +240,5 @@ copy("include") {
]
}
}
outputs = [
"$root_build_dir/include/c++/v1/{{source_target_relative}}",
]
outputs = [ "$root_build_dir/include/c++/v1/{{source_target_relative}}" ]
}

View File

@ -219,9 +219,7 @@ if (libcxx_enable_shared) {
}
symlink_or_copy("cxx_symlink") {
deps = [
":cxx_shared",
]
deps = [ ":cxx_shared" ]
source = "libc++.so.0"
output = "$runtimes_dir/libc++.so"
}
@ -229,9 +227,7 @@ if (libcxx_enable_shared) {
if (libcxx_enable_abi_linker_script) {
action("cxx_linker_script") {
script = "//llvm/utils/gn/secondary/libcxx/utils/gen_link_script.py"
outputs = [
"$runtimes_dir/libc++.so",
]
outputs = [ "$runtimes_dir/libc++.so" ]
args = [
"--input",
rebase_path("$runtimes_dir/libc++.so.0", root_build_dir),
@ -240,9 +236,7 @@ if (libcxx_enable_shared) {
"c++abi",
"unwind",
]
deps = [
":cxx_symlink",
]
deps = [ ":cxx_symlink" ]
}
}
}

View File

@ -1,5 +1,3 @@
group("libcxxabi") {
deps = [
"//libcxxabi/src(//llvm/utils/gn/build/toolchain:stage2_unix)",
]
deps = [ "//libcxxabi/src(//llvm/utils/gn/build/toolchain:stage2_unix)" ]
}

View File

@ -5,7 +5,5 @@ copy("include") {
"__cxxabi_config.h",
"cxxabi.h",
]
outputs = [
"$root_build_dir/include/c++/v1/{{source_target_relative}}",
]
outputs = [ "$root_build_dir/include/c++/v1/{{source_target_relative}}" ]
}

View File

@ -1,5 +1,3 @@
group("libunwind") {
deps = [
"//libunwind/src(//llvm/utils/gn/build/toolchain:stage2_unix)",
]
deps = [ "//libunwind/src(//llvm/utils/gn/build/toolchain:stage2_unix)" ]
}

View File

@ -23,25 +23,25 @@ if (target_os == "mac") {
}
unwind_sources = [
"libunwind.cpp",
"Unwind-EHABI.cpp",
"Unwind-seh.cpp",
"UnwindLevel1.c",
"UnwindLevel1-gcc-ext.c",
"Unwind-sjlj.c",
"UnwindRegistersRestore.S",
"UnwindRegistersSave.S",
"AddressSpace.hpp",
"assembly.h",
"CompactUnwinder.hpp",
"config.h",
"dwarf2.h",
"DwarfInstructions.hpp",
"DwarfParser.hpp",
"libunwind_ext.h",
"Registers.hpp",
"RWMutex.hpp",
"Registers.hpp",
"Unwind-EHABI.cpp",
"Unwind-seh.cpp",
"Unwind-sjlj.c",
"UnwindCursor.hpp",
"UnwindLevel1-gcc-ext.c",
"UnwindLevel1.c",
"UnwindRegistersRestore.S",
"UnwindRegistersSave.S",
"assembly.h",
"config.h",
"dwarf2.h",
"libunwind.cpp",
"libunwind_ext.h",
]
if (target_os == "mac") {
unwind_sources += [
@ -80,9 +80,7 @@ if (libunwind_enable_shared) {
}
sources = unwind_sources
public = unwind_headers
deps = [
"//compiler-rt/lib/builtins",
]
deps = [ "//compiler-rt/lib/builtins" ]
configs += [ ":unwind_config" ]
configs -= [
"//llvm/utils/gn/build:no_exceptions",
@ -104,9 +102,7 @@ if (libunwind_enable_static) {
cflags_cc = [ "-fvisibility-global-new-delete-hidden" ]
defines = [ "_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS" ]
}
deps = [
"//compiler-rt/lib/builtins",
]
deps = [ "//compiler-rt/lib/builtins" ]
configs += [ ":unwind_config" ]
configs -= [
"//llvm/utils/gn/build:no_exceptions",

View File

@ -117,17 +117,13 @@ action("check-lld") {
rebase_path(lld_lit_unit_site_cfg_file, root_out_dir),
rebase_path(".", root_out_dir),
]
outputs = [
"$target_gen_dir/run-lit", # Non-existing, so that ninja runs it each time.
]
outputs = [ "$target_gen_dir/run-lit" ] # Non-existing, so that ninja runs it each time.
# Since check-lld is always dirty, //:default doesn't depend on it so that
# it's not part of the default ninja target. Hence, check-lld shouldn't
# have any deps except :test, so that the default target is sure to build
# all the deps.
deps = [
":test",
]
deps = [ ":test" ]
testonly = true
pool = "//:console"

View File

@ -8,9 +8,7 @@ symlinks = [
]
foreach(target, symlinks) {
symlink_or_copy(target) {
deps = [
":lld",
]
deps = [ ":lld" ]
source = "lld"
output = "$root_out_dir/bin/$target"
}

View File

@ -66,9 +66,7 @@ write_cmake_config("abi-breaking") {
}
write_cmake_config("config") {
public_deps = [
":llvm-config",
]
public_deps = [ ":llvm-config" ]
input = "config.h.cmake"
output = "$target_gen_dir/config.h"

View File

@ -11,9 +11,7 @@ write_vcsrevision("write_vcsrevision") {
# in their args.gn and with empty defaults (similar to llvm_targets_to_build).
action("write_extension_def") {
script = "//llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py"
outputs = [
"$target_gen_dir/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" ]`.

View File

@ -1,8 +1,6 @@
static_library("BinaryFormat") {
output_name = "LLVMBinaryFormat"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
"AMDGPUMetadataVerifier.cpp",
"Dwarf.cpp",

View File

@ -1,8 +1,6 @@
static_library("Reader") {
output_name = "LLVMBitstreamReader"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("MSF") {
output_name = "LLVMDebugInfoMSF"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
"MSFBuilder.cpp",
"MSFCommon.cpp",

View File

@ -1,8 +1,6 @@
static_library("OrcError") {
output_name = "LLVMOrcError"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
"OrcError.cpp",
"RPCError.cpp",

View File

@ -1,8 +1,6 @@
static_library("Option") {
output_name = "LLVMOption"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
"Arg.cpp",
"ArgList.cpp",

View File

@ -1,8 +1,6 @@
static_library("TableGen") {
output_name = "LLVMTableGen"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
"Error.cpp",
"JSONBackend.cpp",

View File

@ -56,9 +56,7 @@ group("tablegen") {
static_library("MCTargetDesc") {
output_name = "LLVMAArch64Desc"
public_deps = [
":tablegen",
]
public_deps = [ ":tablegen" ]
deps = [
":AArch64GenAsmWriter",
":AArch64GenAsmWriter1",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMAArch64Info"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -9,9 +9,7 @@ tablegen("AArch64GenSystemOperands") {
static_library("Utils") {
output_name = "LLVMAArch64Utils"
public_deps = [
":AArch64GenSystemOperands",
]
public_deps = [ ":AArch64GenSystemOperands" ]
deps = [
"//llvm/lib/Support",

View File

@ -80,9 +80,7 @@ group("tablegen") {
static_library("MCTargetDesc") {
output_name = "LLVMAMDGPUDesc"
public_deps = [
":tablegen",
]
public_deps = [ ":tablegen" ]
deps = [
":AMDGPUGenAsmWriter",
":AMDGPUGenMCCodeEmitter",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMAMDGPUInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -8,9 +8,7 @@ tablegen("AMDGPUGenSearchableTables") {
static_library("Utils") {
output_name = "LLVMAMDGPUUtils"
public_deps = [
":AMDGPUGenSearchableTables",
]
public_deps = [ ":AMDGPUGenSearchableTables" ]
deps = [
"//llvm/lib/BinaryFormat",
"//llvm/lib/IR",

View File

@ -47,9 +47,7 @@ group("tablegen") {
static_library("MCTargetDesc") {
output_name = "LLVMARMDesc"
public_deps = [
":tablegen",
]
public_deps = [ ":tablegen" ]
deps = [
":ARMGenAsmWriter",
":ARMGenMCCodeEmitter",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMARMInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -9,9 +9,7 @@ tablegen("ARMGenSystemRegister") {
static_library("Utils") {
output_name = "LLVMARMUtils"
public_deps = [
":ARMGenSystemRegister",
]
public_deps = [ ":ARMGenSystemRegister" ]
deps = [
"//llvm/lib/Support",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMAVRInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMBPFInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -47,9 +47,7 @@ static_library("Target") {
# 2. Forwarding targets.
group("NativeTarget") {
deps = [
"$native_target",
]
deps = [ "$native_target" ]
}
group("TargetsToBuild") {

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMHexagonInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMLanaiInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -47,9 +47,7 @@ group("tablegen") {
static_library("MCTargetDesc") {
output_name = "LLVMMipsDesc"
public_deps = [
":tablegen",
]
public_deps = [ ":tablegen" ]
deps = [
":MipsGenAsmWriter",
":MipsGenMCCodeEmitter",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMMipsInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMNVPTXInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMPowerPCInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -47,9 +47,7 @@ group("tablegen") {
static_library("MCTargetDesc") {
output_name = "LLVMRISCVDesc"
public_deps = [
":tablegen",
]
public_deps = [ ":tablegen" ]
deps = [
":RISCVGenAsmWriter",
":RISCVGenMCCodeEmitter",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMRISCVInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -9,9 +9,7 @@ tablegen("RISCVGenSystemOperands") {
static_library("Utils") {
output_name = "LLVMRISCVUtils"
public_deps = [
":RISCVGenSystemOperands",
]
public_deps = [ ":RISCVGenSystemOperands" ]
deps = [
"//llvm/lib/MC",
"//llvm/lib/Support",

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMSparcInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMSystemZInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMWebAssemblyInfo"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("TargetInfo") {
output_name = "LLVMX86Info"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [ ".." ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.

View File

@ -1,8 +1,6 @@
static_library("Utils") {
output_name = "LLVMX86Utils"
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"X86ShuffleDecode.cpp",

View File

@ -291,17 +291,13 @@ action("check-llvm") {
rebase_path(llvm_lit_unit_site_cfg_file, root_out_dir),
rebase_path(".", root_out_dir),
]
outputs = [
"$target_gen_dir/run-lit", # Non-existing, so that ninja runs it each time.
]
outputs = [ "$target_gen_dir/run-lit" ] # Non-existing, so that ninja runs it each time.
# Since check-llvm is always dirty, //:default doesn't depend on it so that
# it's not part of the default ninja target. Hence, check-llvm shouldn't
# have any deps except :test. so that the default target is sure to build
# all the deps.
deps = [
":test",
]
deps = [ ":test" ]
testonly = true
pool = "//:console"

View File

@ -15,9 +15,7 @@ if (llvm_install_binutils_symlinks) {
}
foreach(target, symlinks) {
symlink_or_copy(target) {
deps = [
":llvm-ar",
]
deps = [ ":llvm-ar" ]
source = "llvm-ar"
output = "$root_out_dir/bin/$target"
}

View File

@ -101,9 +101,7 @@ action("LibraryDependencies.inc") {
"--enable-targets=$llvm_targets_to_build_string",
"--write-library-table=" + rebase_path(output, root_out_dir),
]
outputs = [
output,
]
outputs = [ output ]
}
executable("llvm-config") {

View File

@ -3,9 +3,7 @@ import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("cxxfilt") { # Can't have '+' in target name.
deps = [
":llvm-cxxfilt",
]
deps = [ ":llvm-cxxfilt" ]
source = "llvm-cxxfilt"
output = "$root_out_dir/bin/c++filt" # Note: c++filt, not cxxfilt
}
@ -13,9 +11,7 @@ if (llvm_install_binutils_symlinks) {
# //:llvm-cxxfilt depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [
":llvm-cxxfilt",
]
deps = [ ":llvm-cxxfilt" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":cxxfilt" ]
}

View File

@ -3,9 +3,7 @@ import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("dwp") {
deps = [
":llvm-dwp",
]
deps = [ ":llvm-dwp" ]
source = "llvm-dwp"
output = "$root_out_dir/bin/dwp"
}
@ -13,9 +11,7 @@ if (llvm_install_binutils_symlinks) {
# //:llvm-dwp depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [
":llvm-dwp",
]
deps = [ ":llvm-dwp" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":dwp" ]
}

View File

@ -3,9 +3,7 @@ import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("nm") {
deps = [
":llvm-nm",
]
deps = [ ":llvm-nm" ]
source = "llvm-nm"
output = "$root_out_dir/bin/nm"
}
@ -13,9 +11,7 @@ if (llvm_install_binutils_symlinks) {
# //:llvm-nm depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [
":llvm-nm",
]
deps = [ ":llvm-nm" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":nm" ]
}

View File

@ -29,9 +29,7 @@ if (llvm_install_binutils_symlinks) {
}
foreach(target, symlinks) {
symlink_or_copy(target) {
deps = [
":llvm-objcopy",
]
deps = [ ":llvm-objcopy" ]
source = "llvm-objcopy"
output = "$root_out_dir/bin/$target"
}

View File

@ -3,9 +3,7 @@ import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("objdump") {
deps = [
":llvm-objdump",
]
deps = [ ":llvm-objdump" ]
source = "llvm-objdump"
output = "$root_out_dir/bin/objdump"
}
@ -13,9 +11,7 @@ if (llvm_install_binutils_symlinks) {
# //:llvm-objdump depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [
":llvm-objdump",
]
deps = [ ":llvm-objdump" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":objdump" ]
}

View File

@ -7,9 +7,7 @@ if (llvm_install_binutils_symlinks) {
}
foreach(target, symlinks) {
symlink_or_copy(target) {
deps = [
":llvm-readobj",
]
deps = [ ":llvm-readobj" ]
source = "llvm-readobj"
output = "$root_out_dir/bin/$target"
}

View File

@ -3,9 +3,7 @@ import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("size") {
deps = [
":llvm-size",
]
deps = [ ":llvm-size" ]
source = "llvm-size"
output = "$root_out_dir/bin/size"
}
@ -13,9 +11,7 @@ if (llvm_install_binutils_symlinks) {
# //:llvm-size depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [
":llvm-size",
]
deps = [ ":llvm-size" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":size" ]
}

View File

@ -3,9 +3,7 @@ import("//llvm/utils/gn/build/symlink_or_copy.gni")
if (llvm_install_binutils_symlinks) {
symlink_or_copy("strings") {
deps = [
":llvm-strings",
]
deps = [ ":llvm-strings" ]
source = "llvm-strings"
output = "$root_out_dir/bin/strings"
}
@ -13,9 +11,7 @@ if (llvm_install_binutils_symlinks) {
# //:llvm-strings depends on this symlink target, see comment in //BUILD.gn.
group("symlinks") {
deps = [
":llvm-strings",
]
deps = [ ":llvm-strings" ]
if (llvm_install_binutils_symlinks) {
deps += [ ":strings" ]
}

View File

@ -7,9 +7,7 @@ if (llvm_install_binutils_symlinks) {
}
foreach(target, symlinks) {
symlink_or_copy(target) {
deps = [
":llvm-symbolizer",
]
deps = [ ":llvm-symbolizer" ]
source = "llvm-symbolizer"
output = "$root_out_dir/bin/$target"
}

View File

@ -1,9 +1,7 @@
import("//llvm/utils/unittest/unittest.gni")
unittest("BinaryFormatTests") {
deps = [
"//llvm/lib/BinaryFormat",
]
deps = [ "//llvm/lib/BinaryFormat" ]
sources = [
"DwarfTest.cpp",
"MachOTest.cpp",

View File

@ -1,9 +1,7 @@
import("//llvm/utils/unittest/unittest.gni")
unittest("BitstreamTests") {
deps = [
"//llvm/lib/Bitstream/Reader",
]
deps = [ "//llvm/lib/Bitstream/Reader" ]
sources = [
"BitstreamReaderTest.cpp",
"BitstreamWriterTest.cpp",

View File

@ -1,9 +1,7 @@
import("//llvm/utils/unittest/unittest.gni")
unittest("DemangleTests") {
deps = [
"//llvm/lib/Demangle",
]
deps = [ "//llvm/lib/Demangle" ]
sources = [
"DemangleTest.cpp",
"ItaniumDemangleTest.cpp",

View File

@ -1,7 +1,5 @@
executable("FileCheck") {
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"FileCheck.cpp",

View File

@ -1,7 +1,5 @@
static_library("GlobalISel") {
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
"CodeExpander.cpp",
"GIMatchDag.cpp",

View File

@ -44,17 +44,13 @@ template("tablegen") {
tblgen_target += "($host_toolchain)"
tblgen_executable = get_label_info(tblgen_target, "root_out_dir") +
"/bin/" + get_label_info(tblgen_target, "name")
deps = [
tblgen_target,
]
deps = [ tblgen_target ]
if (defined(invoker.td_file)) {
td_file = invoker.td_file
} else {
td_file = "$target_name.td"
}
sources = [
td_file,
]
sources = [ td_file ]
script = "//llvm/utils/gn/build/run_tablegen.py"
if (defined(invoker.output_name)) {
gen_output = "$target_gen_dir/" + invoker.output_name
@ -82,9 +78,7 @@ template("tablegen") {
rebase_path(gen_output, root_build_dir),
td_file,
] + invoker.args
outputs = [
gen_output,
]
outputs = [ gen_output ]
# Let targets depending on this find the generated file.
public_configs = [ ":$config_name" ]

View File

@ -15,9 +15,7 @@ write_cmake_config("llvm-lit") {
}
# lit's lit/llvm/config.py shells out to llvm-config.
deps = [
"//llvm/tools/llvm-config",
]
deps = [ "//llvm/tools/llvm-config" ]
# Generate LLVM_LIT_CONFIG_MAP parameter.
# llvm-lit contains a mapping from each lit.cfg.py file to the corresponding

View File

@ -1,7 +1,5 @@
executable("not") {
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"not.cpp",

View File

@ -23,9 +23,7 @@ config("googletest_config") {
}
static_library("gtest") {
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
include_dirs = [
"googletest", # For including src/gtest.cc
"googlemock", # For including src/gmock.cc

View File

@ -1,13 +1,9 @@
source_set("UnitTestMain") {
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
# Make targets depending on this also depend on gtest, to get the gtest
# include_dir.
public_deps = [
"..:gtest",
]
public_deps = [ "..:gtest" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"TestMain.cpp",
@ -18,9 +14,7 @@ source_set("UnitTestMain") {
# Nothing depends on this target, but llvm-config expects it to exist when
# it runs with `--link-static --system-libs`, so humor it.
static_library("gtest_main") {
deps = [
":UnitTestMain",
]
deps = [ ":UnitTestMain" ]
complete_static_lib = true
testonly = true
}

View File

@ -1,7 +1,5 @@
executable("yaml-bench") {
deps = [
"//llvm/lib/Support",
]
deps = [ "//llvm/lib/Support" ]
sources = [
# Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
"YAMLBench.cpp",