[Lldb-commits] [PATCH] D22233: Apply local patches when building llvm on Mac.
Stephane Sezer via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 11 18:36:19 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL275134: Apply local patches when building llvm on Mac. (authored by sas).
Changed prior to commit:
http://reviews.llvm.org/D22233?vs=63547&id=63619#toc
Repository:
rL LLVM
http://reviews.llvm.org/D22233
Files:
lldb/trunk/scripts/Xcode/build-llvm.py
Index: lldb/trunk/scripts/Xcode/build-llvm.py
===================================================================
--- lldb/trunk/scripts/Xcode/build-llvm.py
+++ lldb/trunk/scripts/Xcode/build-llvm.py
@@ -2,6 +2,7 @@
import errno
import hashlib
+import fnmatch
import os
import platform
import subprocess
@@ -166,9 +167,16 @@
#### CHECKING OUT AND BUILDING LLVM ####
+def apply_patches(spec):
+ files = os.listdir(os.path.join(lldb_source_path(), 'scripts'))
+ patches = [f for f in files if fnmatch.fnmatch(f, spec['name'] + '.*.diff')]
+ for p in patches:
+ run_in_directory(["patch", "-p0", "-i", os.path.join(lldb_source_path(), 'scripts', p)], spec['root'])
+
def check_out_if_needed(spec):
if not os.path.isdir(spec['root']):
vcs(spec).check_out()
+ apply_patches(spec)
def all_check_out_if_needed ():
map (check_out_if_needed, XCODE_REPOSITORIES())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22233.63619.patch
Type: text/x-patch
Size: 913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160712/317da9fb/attachment.bin>
More information about the lldb-commits
mailing list