Skip to content

Commit 3effff8

Browse files
committed
Append swiftc flags passed from the environment to the executable phase
This allows for SWIFTCFLAGS to be specified such that building the unit test product can adopt specific -I paths for finding modules like XCTest
1 parent 3871c6c commit 3effff8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/script.py

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def generate_products(self):
117117
swift_flags += "-g -Onone "
118118
elif Configuration.current.build_mode == Configuration.Release:
119119
swift_flags += " "
120+
swift_flags += Configuration.current.extra_swift_flags
120121

121122

122123

0 commit comments

Comments
 (0)