[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 11:57:27 PDT 2016
sas created this revision.
sas added reviewers: tfiala, clayborg.
sas added a subscriber: lldb-commits.
This is already done when building for linux with the CMake build
system. This functionality disappeared recently when some of the build
scripts used by the xcode build system changed.
http://reviews.llvm.org/D22233
Files:
scripts/Xcode/build-llvm.py
Index: scripts/Xcode/build-llvm.py
===================================================================
--- scripts/Xcode/build-llvm.py
+++ 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.63547.patch
Type: text/x-patch
Size: 880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160711/92607491/attachment.bin>
More information about the lldb-commits
mailing list