mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
cmake: unbreak the usecase of cross-compiling the compiler while
disabling the standard library In almost all cases, CMake will happily operate on undefined variables, treating them as empty, but for some reason list(REMOVE_ITEM) is an exception. Swift SVN r25835
This commit is contained in:
@@ -1195,7 +1195,8 @@ function(add_swift_library name)
|
||||
list(APPEND SWIFTLIB_SWIFT_MODULE_DEPENDS Core)
|
||||
endif()
|
||||
|
||||
if(NOT "${SWIFT_BUILD_STDLIB}")
|
||||
if((NOT "${SWIFT_BUILD_STDLIB}") AND
|
||||
(NOT "${SWIFTLIB_SWIFT_MODULE_DEPENDS}" STREQUAL ""))
|
||||
list(REMOVE_ITEM SWIFTLIB_SWIFT_MODULE_DEPENDS
|
||||
Core SwiftUnstable)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user