Skip to content

Fix make.ps1 passing ponyc arguments as a single string - #513

Merged
SeanTAllen merged 1 commit into
mainfrom
sean/fix-make-ps1-arrays
Nov 17, 2026
Merged

SeanTAllen merged 1 commit into
mainfrom
sean/fix-make-ps1-arrays

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

PowerShell passes a string variable as one argument to a native command. $ponyArgs held all the flags in a single string, so ponyc received --define libressl --path C:\...\windows-arm64 as one token and rejected it. Same issue $configFlag had on Release builds (empty string passed as an empty argument).

Switch both to arrays so each flag becomes a separate argument. Same class of fix as ponylang/cloudsmith-uploader@566ce23.

PowerShell passes a string variable as one argument to a native command.
$ponyArgs held all the flags in a single string, so ponyc received
"--define libressl  --path C:\...\windows-arm64" as one token and
rejected it. Same issue $configFlag had on Release builds (empty string
passed as an empty argument).

Switch both to arrays so each flag becomes a separate argument.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Nov 17, 2026
@SeanTAllen
SeanTAllen merged commit d768bcb into main Nov 17, 2026
15 checks passed
@SeanTAllen
SeanTAllen deleted the sean/fix-make-ps1-arrays branch November 17, 2026 12:35
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants