diff --git a/CMakeLists.txt b/CMakeLists.txt index 733f109bc57c3..b98933a062d14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,8 +77,10 @@ option(SWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT "If not building stdlib, controls whether to build 'stdlib/toolchain' content" TRUE) +# `SWIFT_ENABLE_TENSOFRFLOW` affects lit tests, adding "tensorflow" as an +# available feature. option(SWIFT_ENABLE_TENSORFLOW - "Enable TensorFlow in the compiler and build the Swift TensorFlow library" + "Enable TensorFlow in the compiler" FALSE) # In many cases, the CMake build system needs to determine whether to include diff --git a/utils/build-script-impl b/utils/build-script-impl index 509c1d0d71e1e..2b9352d7ac780 100755 --- a/utils/build-script-impl +++ b/utils/build-script-impl @@ -1698,8 +1698,8 @@ for host in "${ALL_HOSTS[@]}"; do -DSWIFT_TOOLS_ENABLE_LTO:STRING="${SWIFT_TOOLS_ENABLE_LTO}" -DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=$(true_false "${BUILD_RUNTIME_WITH_HOST_COMPILER}") -DLIBDISPATCH_CMAKE_BUILD_TYPE:STRING="${LIBDISPATCH_BUILD_TYPE}" - # SWIFT_ENABLE_TENSORFLOW + # CMake options specific to `tensorflow` branch here. -DSWIFT_ENABLE_TENSORFLOW:BOOL=TRUE # SWIFT_ENABLE_TENSORFLOW END "${swift_cmake_options[@]}"