Skip to content

Commit 29ad3f5

Browse files
authored
[build] NFC: document tensorflow branch CMake options. (#31526)
Document `SWIFT_ENABLE_TENSORFLOW` CMake option. Explain that it affects the "tensorflow" lit testing available feature.
1 parent 04e9303 commit 29ad3f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ option(SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT
7777
"If not building stdlib, controls whether to build 'stdlib/toolchain' content"
7878
TRUE)
7979

80+
# `SWIFT_ENABLE_TENSOFRFLOW` affects lit tests, adding "tensorflow" as an
81+
# available feature.
8082
option(SWIFT_ENABLE_TENSORFLOW
81-
"Enable TensorFlow in the compiler and build the Swift TensorFlow library"
83+
"Enable TensorFlow in the compiler"
8284
FALSE)
8385

8486
# In many cases, the CMake build system needs to determine whether to include

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,8 @@ for host in "${ALL_HOSTS[@]}"; do
16981698
-DSWIFT_TOOLS_ENABLE_LTO:STRING="${SWIFT_TOOLS_ENABLE_LTO}"
16991699
-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=$(true_false "${BUILD_RUNTIME_WITH_HOST_COMPILER}")
17001700
-DLIBDISPATCH_CMAKE_BUILD_TYPE:STRING="${LIBDISPATCH_BUILD_TYPE}"
1701-
17021701
# SWIFT_ENABLE_TENSORFLOW
1702+
# CMake options specific to `tensorflow` branch here.
17031703
-DSWIFT_ENABLE_TENSORFLOW:BOOL=TRUE
17041704
# SWIFT_ENABLE_TENSORFLOW END
17051705
"${swift_cmake_options[@]}"

0 commit comments

Comments
 (0)