Merge pull request #2836 from edelabar/main

Change deprecated `swift build` `-C` command line option to replacement `--package-path`
This commit is contained in:
Anthony Sottile 2023-04-03 16:25:11 -04:00 committed by GitHub
commit 597bf7caf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ def install_environment(
os.mkdir(envdir) os.mkdir(envdir)
cmd_output_b( cmd_output_b(
'swift', 'build', 'swift', 'build',
'-C', prefix.prefix_dir, '--package-path', prefix.prefix_dir,
'-c', BUILD_CONFIG, '-c', BUILD_CONFIG,
'--build-path', os.path.join(envdir, BUILD_DIR), '--build-path', os.path.join(envdir, BUILD_DIR),
) )