message: Fix the apply_patches method to work correctly from the
  build-swift-cmake.py directory layout where llvm/clang/swift/lldb
  are all siblings of one another.
diff: @@ -44,13 +44,14 @@ parser.add_argument('--foundation', action='store_true',
  args = parser.parse_args()
  def apply_patches(repo):
  - files = os.listdir(os.path.join(lldb_source_path(), 'scripts'))
  + patches_dir = os.path.dirname(os.path.realpath(__file__)) # patch files will be in scripts/ dir just like this script
  + files = os.listdir(patches_dir)
  patches = [
  f for f in files if fnmatch.fnmatch(
  f, repo + '.*.diff')]
  for p in patches:
  - subprocess.call(["patch", '-p0', '-i',
  - os.path.join(lldb_source_path(), 'scripts', p)],
  + subprocess.call(["patch", '-p1', '-i',
  + os.path.join(patches_dir, p)],
  cwd=repo)
  def checkout_git(dir, repo, branch):
  