-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] Respect SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER when compiling…
… the stdlib if SWIFT_NATIVE_SWIFT_TOOLS_PATH is not set and CMake_Swift_COMPILER is. Previously, no matter if SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER was set, we would use for swiftc SWIFT_NATIVE_SWIFT_TOOLS_PATH/bin/swiftc. This is correct assuming that the user always passed in that flag. This will no longer always be true since we are attempting to transition the stdlib slowly to use more standard cmake. Instead, in that case if SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER is set and SWIFT_NATIVE_SWIFT_TOOLS_PATH is not set /and/ we have a CMAKE_Swift_COMPILER, we just use CMAKE_Swift_COMPILER. Hopefully with time we get rid of SWIFT_NATIVE_SWIFT_TOOLS_PATH.
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters