[llvm] r358774 - [gn] Support dots in CMake paths in the sync script
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 11:29:17 PDT 2019
Author: phosek
Date: Fri Apr 19 11:29:17 2019
New Revision: 358774
URL: http://llvm.org/viewvc/llvm-project?rev=358774&view=rev
Log:
[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
Modified:
llvm/trunk/utils/gn/build/sync_source_lists_from_cmake.py
llvm/trunk/utils/gn/secondary/clang/tools/libclang/BUILD.gn
Modified: llvm/trunk/utils/gn/build/sync_source_lists_from_cmake.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/build/sync_source_lists_from_cmake.py?rev=358774&r1=358773&r2=358774&view=diff
==============================================================================
--- llvm/trunk/utils/gn/build/sync_source_lists_from_cmake.py (original)
+++ llvm/trunk/utils/gn/build/sync_source_lists_from_cmake.py Fri Apr 19 11:29:17 2019
@@ -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:
Modified: llvm/trunk/utils/gn/secondary/clang/tools/libclang/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/tools/libclang/BUILD.gn?rev=358774&r1=358773&r2=358774&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/tools/libclang/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/clang/tools/libclang/BUILD.gn Fri Apr 19 11:29:17 2019
@@ -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 = [
More information about the llvm-commits
mailing list