File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -651,15 +651,20 @@ def main():
651
651
if result != 0 :
652
652
error ("build failed with exit status %d" % (result ,))
653
653
654
- swift_build_path = os .path .join (build_path , "debug" , "swift-build" )
655
- swift_test_path = os .path .join (build_path , "debug" , "swift-test" )
654
+ if args .release :
655
+ conf = "release"
656
+ else :
657
+ conf = "debug"
658
+
659
+ swift_build_path = os .path .join (build_path , conf , "swift-build" )
660
+ swift_test_path = os .path .join (build_path , conf , "swift-test" )
656
661
657
662
# If testing, run each of the test bundles.
658
663
if "test" in build_actions :
659
664
# Construct the test environment.
660
665
env_cmd = ["env" , "SWIFT_EXEC=" + os .path .join (bindir , "swiftc" ),
661
666
"SWIFT_BUILD_PATH=" + build_path ]
662
- cmd = env_cmd + [os . path . join ( build_path , "debug" , "swift-test" ) ]
667
+ cmd = env_cmd + [swift_test_path ]
663
668
result = subprocess .call (cmd , cwd = g_project_root )
664
669
if result != 0 :
665
670
error ("tests failed with exit status %d" % (result ,))
You can’t perform that action at this time.
0 commit comments