[Lldb-commits] [PATCH] D38328: Assume git-generated patch files in build scripts

Phabricator via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 27 16:46:39 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL314366: Change build-llvm.py and build-lldb-llvm-clang's patching mechanisms to (authored by jmolenda).

Repository:
  rL LLVM

https://reviews.llvm.org/D38328

Files:
  lldb/trunk/scripts/Xcode/build-llvm.py
  lldb/trunk/scripts/build-lldb-llvm-clang


Index: lldb/trunk/scripts/build-lldb-llvm-clang
===================================================================
--- lldb/trunk/scripts/build-lldb-llvm-clang
+++ lldb/trunk/scripts/build-lldb-llvm-clang
@@ -33,15 +33,15 @@
 for patch_file in ../scripts/llvm.*.diff
 do
 	echo "Applying patch from '$patch_file'"
-    patch -p0 < "$patch_file"
+    patch -p1 < "$patch_file"
 done
 
 # change directory to "./llvm/tools/clang"
 cd tools/clang
 for patch_file in ../../../scripts/clang.*.diff
 do
 	echo "Applying patch from '$patch_file'"
-    patch -p0 < "$patch_file"
+    patch -p1 < "$patch_file"
 done
 
 # change directory to "./"
Index: lldb/trunk/scripts/Xcode/build-llvm.py
===================================================================
--- lldb/trunk/scripts/Xcode/build-llvm.py
+++ lldb/trunk/scripts/Xcode/build-llvm.py
@@ -224,7 +224,7 @@
             f, spec['name'] + '.*.diff')]
     for p in patches:
         run_in_directory(["patch",
-                          "-p0",
+                          "-p1",
                           "-i",
                           os.path.join(lldb_source_path(),
                                        'scripts',


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38328.116906.patch
Type: text/x-patch
Size: 1173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170927/cb0615a4/attachment.bin>


More information about the lldb-commits mailing list