mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The existing swift-cmake-options flag overwrites all flags computed by build-script. Sometimes it is useful to be able to append additional CMake flags without overwriting the existing flags. This patch adds `--extra-swift-cmake-options` that adds the specified flags to the Swift CMake configuration instead of overwriting them. This also adds a similar `--extra-llvm-cmake-options`, which adds the new flags to the end, allowing one to replace and overwrite CMake flags that build-script computed. Due to the parameter passing mechanisms in build-script-impl, while this behavior would be useful for Swift, it is not immediately apparent how one would best implement this at this time.