Skip to content

Commit 9b7278f

Browse files
committed
[Build script helper] Add -enable-testing on the swift test invocation
1 parent 6876b79 commit 9b7278f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Utilities/build-script-helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def handle_invocation(toolchain_bin, args):
175175
env['SWIFT_DRIVER_' + tool.upper().replace('-','_') + '_EXEC'] = '%s' % (tool_path)
176176
env['SWIFT_EXEC'] = '%sc' % (swift_exec)
177177
test_args = swiftpm_args
178+
test_args += ['-Xswiftc', '-enable-testing']
178179
if should_test_parallel():
179180
test_args += ['--parallel']
180181
swiftpm('test', swift_exec, test_args, env)
@@ -379,8 +380,6 @@ def build_using_cmake(args, toolchain_bin, build_dir):
379380
if args.configuration == 'debug':
380381
swift_flags.append('-Onone')
381382
swift_flags.append('-DDEBUG')
382-
else:
383-
swift_flags.append('-O')
384383

385384
base_cmake_flags = []
386385
for target in targets:

0 commit comments

Comments
 (0)