mirror of
https://github.com/apple/container.git
synced 2026-10-13 17:49:16 +00:00
Add a SWIFT_CONFIGURATION_EXTRA hook for extra swift build flags (#2354)
This commit is contained in:
1 parent
6fe55561fd
commit
ddc3169cc3
1 file changed
+4
-1
@@ -15,7 +15,10 @@
|
||||
# Version and build configuration variables
|
||||
BUILD_CONFIGURATION ?= debug
|
||||
WARNINGS_AS_ERRORS ?= true
|
||||
SWIFT_CONFIGURATION := $(if $(filter-out false,$(WARNINGS_AS_ERRORS)),-Xswiftc -warnings-as-errors) -Xswiftc -enable-testing
|
||||
# Extra swift build flags, appended last so callers can add to (rather than
|
||||
# replace) the configuration above.
|
||||
SWIFT_CONFIGURATION_EXTRA ?=
|
||||
SWIFT_CONFIGURATION := $(if $(filter-out false,$(WARNINGS_AS_ERRORS)),-Xswiftc -warnings-as-errors) -Xswiftc -enable-testing $(SWIFT_CONFIGURATION_EXTRA)
|
||||
# Code-coverage instrumentation, layered onto the shared build stages. Empty for
|
||||
# ordinary builds; the coverage-* targets opt in via a target-specific value so
|
||||
# only those goals compile instrumented binaries.
|
||||
|
||||
Reference in new issue
Block a user