Add a SWIFT_FREESTANDING_MODULE_NAME CMake option (#34018)

This commit is contained in:
Kuba (Brecka) Mracek
2020-09-22 15:14:44 -07:00
committed by GitHub
parent 12c356b3d2
commit 41f91d5365
3 changed files with 13 additions and 1 deletions

View File

@@ -202,6 +202,7 @@ KNOWN_SETTINGS=(
## FREESTANDING Stdlib Options
swift-freestanding-sdk "" "which SDK to use when building the FREESTANDING stdlib"
swift-freestanding-triple-name "" "which triple name (e.g. 'none-macho') to use when building the FREESTANDING stdlib"
swift-freestanding-module-name "" "which .swiftmodule name (e.g. 'freestanding') to use when building the FREESTANDING stdlib"
swift-freestanding-archs "" "space-separated list of which architectures to build when building the FREESTANDING stdlib"
## Uncategorised
@@ -1901,6 +1902,13 @@ for host in "${ALL_HOSTS[@]}"; do
)
fi
if [ "${SWIFT_FREESTANDING_MODULE_NAME}" ] ; then
cmake_options=(
"${cmake_options[@]}"
-DSWIFT_FREESTANDING_MODULE_NAME:STRING="${SWIFT_FREESTANDING_MODULE_NAME}"
)
fi
if [[ "${SWIFT_FREESTANDING_ARCHS}" ]] ; then
cmake_options=(
"${cmake_options[@]}"