Skip to content

[build] NFC: document tensorflow branch CMake options. #31526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand Down