##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
## Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
## Licensed under Apache License v2.0 with Runtime Library Exception
##
## See https://swift.org/LICENSE.txt for license information
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
##
##===----------------------------------------------------------------------===##

common --enable_bzlmod
common --incompatible_disallow_empty_glob
common --incompatible_use_host_features
common --lockfile_mode=off

build --features=swift.use_explicit_swift_module_map
build --host_features=swift.use_explicit_swift_module_map

# Improved build performance
build --host_swiftcopt=-whole-module-optimization
build --swiftcopt=-whole-module-optimization

# Keep in sync with Package.swift
build --host_macos_minimum_os=10.15
build --macos_minimum_os=10.15

test --test_output=errors
