Skip to content

Commit

Permalink
[gn] Support dots in CMake paths in the sync script
Browse files Browse the repository at this point in the history
Some file paths use dots to pick up sources from parent directories.

Differential Revision: https://reviews.llvm.org/D60734

llvm-svn: 358774
  • Loading branch information
petrhosek committed Apr 19, 2019
1 parent 52cf940 commit 45fc903
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion compiler-rt/lib/sanitizer_common/CMakeLists.txt
Expand Up @@ -119,7 +119,6 @@ set(SANITIZER_IMPL_HEADERS
sanitizer_common_interceptors.inc
sanitizer_common_interceptors_format.inc
sanitizer_common_interceptors_ioctl.inc
sanitizer_common_interceptors_vfork_aarch64.inc.S
sanitizer_common_interface.inc
sanitizer_common_interface_posix.inc
sanitizer_common_syscalls.inc
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/gn/build/sync_source_lists_from_cmake.py
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn
Expand Up @@ -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 = [
Expand Down

0 comments on commit 45fc903

Please sign in to comment.