1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

[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 6805993080
commit afc8458e8c
9 changed files with 18 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,12 +2,11 @@ import("//llvm/utils/unittest/unittest.gni")
unittest("MIRTests") {
deps = [
"//llvm/lib/CodeGen",
"//llvm/lib/IR",
"//llvm/lib/FileCheck",
"//llvm/lib/MC",
"//llvm/lib/CodeGen/MIRParser",
"//llvm/lib/FileCheck",
"//llvm/lib/IR",
"//llvm/lib/MC",
"//llvm/lib/Support",
"//llvm/lib/Target",
"//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
# on Windows and true elsewhere.
if (host_os != "win") {
foreach(plugin, ["TestPlugin", "DoublerPlugin"]) {
foreach(plugin,
[
"TestPlugin",
"DoublerPlugin",
]) {
loadable_module(plugin) {
# Put plugin next to the unit test executable.
output_dir = target_out_dir