Skip to content

Commit 27a2d7d

Browse files
authored
Merge pull request #24429 from compnerd/bye-bye-birdie
build: don't always load clang/cmark
2 parents a97b4c8 + 816dfe2 commit 27a2d7d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,12 @@ endmacro()
196196
# product
197197
# The product name, e.g. Swift or SourceKit. Used as prefix for some
198198
# cmake variables.
199-
#
200-
# is_cross_compiling
201-
# Whether this is cross-compiling host tools.
202199
macro(swift_common_standalone_build_config product)
203200
swift_common_standalone_build_config_llvm(${product})
204-
swift_common_standalone_build_config_clang(${product})
205-
swift_common_standalone_build_config_cmark(${product})
201+
if(SWIFT_INCLUDE_TOOLS)
202+
swift_common_standalone_build_config_clang(${product})
203+
swift_common_standalone_build_config_cmark(${product})
204+
endif()
206205

207206
# Enable groups for IDE generators (Xcode and MSVC).
208207
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

0 commit comments

Comments
 (0)