[Lldb-commits] [PATCH] D38328: Assume git-generated patch files in build scripts
Francis Ricci via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 27 12:55:03 PDT 2017
fjricci created this revision.
It is probably reasonable to expect that most (or all) users of
the patch file feature will be using git, and assuming
git patch files makes this feature easier to use.
https://reviews.llvm.org/D38328
Files:
scripts/Xcode/build-llvm.py
scripts/build-lldb-llvm-clang
Index: scripts/build-lldb-llvm-clang
===================================================================
--- scripts/build-lldb-llvm-clang
+++ 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: scripts/Xcode/build-llvm.py
===================================================================
--- scripts/Xcode/build-llvm.py
+++ 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.116867.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170927/9858a78d/attachment.bin>
More information about the lldb-commits
mailing list