From: Petr Hosek Date: Fri, 19 Apr 2019 18:29:17 +0000 (+0000) Subject: [gn] Support dots in CMake paths in the sync script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a926e0ed80f52da39d38645ee602a17b3189b46;p=llvm [gn] Support dots in CMake paths in the sync script Some file paths use dots to pick up sources from parent directories. Differential Revision: https://reviews.llvm.org/D60734 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358774 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/gn/build/sync_source_lists_from_cmake.py b/utils/gn/build/sync_source_lists_from_cmake.py index 480b5aa1c81..3fb155cb79d 100755 --- a/utils/gn/build/sync_source_lists_from_cmake.py +++ b/utils/gn/build/sync_source_lists_from_cmake.py @@ -25,7 +25,7 @@ def sync_source_lists(): # Matches e.g. | "foo.cpp",|, captures |foo| in group 1. gn_cpp_re = re.compile(r'^\s*"([^"]+\.(?:cpp|c|h|S))",$', re.MULTILINE) # Matches e.g. | foo.cpp|, captures |foo| in group 1. - cmake_cpp_re = re.compile(r'^\s*([A-Za-z_0-9/-]+\.(?:cpp|c|h|S))$', + cmake_cpp_re = re.compile(r'^\s*([A-Za-z_0-9./-]+\.(?:cpp|c|h|S))$', re.MULTILINE) for gn_file in gn_files: diff --git a/utils/gn/secondary/clang/tools/libclang/BUILD.gn b/utils/gn/secondary/clang/tools/libclang/BUILD.gn index 7417e5982ee..59420c8ecd6 100644 --- a/utils/gn/secondary/clang/tools/libclang/BUILD.gn +++ b/utils/gn/secondary/clang/tools/libclang/BUILD.gn @@ -73,6 +73,7 @@ target(libclang_target_type, "libclang") { "CXType.h", "Index_Internal.h", "Indexing.cpp", + "../../include/clang-c/Index.h", ] if (host_os == "mac") { ldflags = [