Skip to content

Commit 58ba27b

Browse files
committed
[ASTGen/CMake] Remove redundant -Xcc -I options
Include directories are already specified in parent directories or dependencies, and `-I` for swiftc are propagated to ClangImporter. We don't need to specify them manually.
1 parent 0ebf870 commit 58ba27b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/ASTGen/CMakeLists.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,7 @@ add_pure_swift_host_library(swiftIDEUtilsBridging
8080
swiftASTGen
8181
)
8282

83-
set(c_include_paths
84-
# LLVM modules and headers.
85-
"${LLVM_MAIN_INCLUDE_DIR}"
86-
# Generated LLVM headers.
87-
"${LLVM_INCLUDE_DIR}"
88-
# Clang modules and headers.
89-
${CLANG_INCLUDE_DIRS}
90-
# Bridging modules and headers.
91-
"${SWIFT_MAIN_INCLUDE_DIR}"
92-
# Generated C headers.
93-
"${CMAKE_CURRENT_BINARY_DIR}/../../include")
94-
set(c_include_paths_args)
95-
foreach(c_include_path ${c_include_paths})
96-
list(APPEND c_include_paths_args "SHELL: -Xcc -I -Xcc ${c_include_path}")
97-
endforeach()
98-
9983
set(compile_options
100-
${c_include_paths_args}
10184
"SHELL: -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT"
10285

10386
# FIXME: Needed to work around an availability issue with CxxStdlib

0 commit comments

Comments
 (0)