Skip to content

Commit 1276628

Browse files
author
Zachary 'Clack' Cole
authored
Merge pull request #634 from ahoppen/pr/package-path
Use --package-path instead of -C when building SwiftPM packages
2 parents d7361b1 + 73f2b55 commit 1276628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project_future.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def clean_swift_package(path, swiftc, sandbox_profile,
272272
if swift_branch == 'swift-3.0-branch':
273273
command = [swift, 'build', '-C', path, '--clean']
274274
else:
275-
command = [swift, 'package', '-C', path, 'clean']
275+
command = [swift, 'package', '--package-path', path, 'clean']
276276
if (swift_branch not in ['swift-3.0-branch',
277277
'swift-3.1-branch']):
278278
command.insert(2, '--disable-sandbox')
@@ -293,7 +293,7 @@ def build_swift_package(path, swiftc, swift_version, configuration,
293293
env = os.environ
294294
env['DYLD_LIBRARY_PATH'] = get_stdlib_platform_path(swiftc, 'macOS')
295295
env['SWIFT_EXEC'] = override_swift_exec or swiftc
296-
command = [swift, 'build', '-C', path, '--verbose',
296+
command = [swift, 'build', '--package-path', path, '--verbose',
297297
'--configuration', configuration]
298298
if (swift_branch not in ['swift-3.0-branch',
299299
'swift-3.1-branch']):

0 commit comments

Comments
 (0)