Skip to content

Conversation

@cfallin
Copy link
Member

@cfallin cfallin commented Dec 22, 2025

Currently, --engine-flags '-Ccranelift-...=...' fails to work because the structopt argument parser sees the -C... as a new argument. The allow_hyphen_values option allows such usage to work, which is very convenient for running experiments with different optimization options without rebuilding the .so with modified defaults.

Currently, `--engine-flags '-Ccranelift-...=...'` fails to work because
the structopt argument parser sees the `-C...` as a new argument. The
`allow_hyphen_values` option allows such usage to work, which is very
convenient for running experiments with different optimization options
without rebuilding the `.so` with modified defaults.
@cfallin cfallin requested a review from fitzgen December 22, 2025 04:28
@posborne
Copy link
Collaborator

Ah, nice. The workaround I've been using for this is to quote the whole chunk of flags like this:

"--engine-flags=-Ccranelift-...=..."

but it would be nice to not have to do that.

@fitzgen fitzgen merged commit ab8bab2 into bytecodealliance:main Dec 22, 2025
17 checks passed
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.

3 participants