-
I'm using vscode to cross compile for a linux target. This build command works: swift build --experimental-swift-sdk 5.9.1-RELEASE_ubuntu_focal_x86_64 However, if I try and use vscode to build, I get this: The terminal process "/usr/bin/swift 'build', '--experimental-swift-sdk 5.9.1-RELEASE_ubuntu_focal_x86_64'" failed to launch (exit code: 64). The relevant part of the tasks.json looks like this: "type": "swift", A bit of testing (i.e. making the build args "--version") shows that the same versions are being called in both cases. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oops, I figured it out. Each argument has to be seprate, it doesn't parse them like the shell does, so this: needs to be this: "--experimental-swift-sdk", |
Beta Was this translation helpful? Give feedback.
Oops, I figured it out. Each argument has to be seprate, it doesn't parse them like the shell does, so this:
"--experimental-swift-sdk 5.9.1-RELEASE_ubuntu_focal_x86_64"
needs to be this:
"--experimental-swift-sdk",
"5.9.1-RELEASE_ubuntu_focal_x86_64"