```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
18 lines
796 B
Diff
18 lines
796 B
Diff
--- a/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
|
|
+++ b/third_party/swiftshader/third_party/llvm-10.0/BUILD.gn
|
|
@@ -574,6 +574,7 @@ swiftshader_llvm_source_set("swiftshader
|
|
"llvm/lib/MC/MCAsmInfoCOFF.cpp",
|
|
"llvm/lib/MC/MCAsmInfoDarwin.cpp",
|
|
"llvm/lib/MC/MCAsmInfoELF.cpp",
|
|
+ "llvm/lib/MC/MCAsmInfoXCOFF.cpp",
|
|
"llvm/lib/MC/MCAsmMacro.cpp",
|
|
"llvm/lib/MC/MCAsmStreamer.cpp",
|
|
"llvm/lib/MC/MCAssembler.cpp",
|
|
@@ -629,6 +630,7 @@ swiftshader_llvm_source_set("swiftshader
|
|
"llvm/lib/MC/MCWinCOFFStreamer.cpp",
|
|
"llvm/lib/MC/MCWinEH.cpp",
|
|
"llvm/lib/MC/MCXCOFFStreamer.cpp",
|
|
+ "llvm/lib/MC/MCXCOFFObjectTargetWriter.cpp",
|
|
"llvm/lib/MC/MachObjectWriter.cpp",
|
|
"llvm/lib/MC/StringTableBuilder.cpp",
|
|
"llvm/lib/MC/SubtargetFeature.cpp",
|