Skip to content

Revert #27397: Use shlex.split for executables in config file - #27421

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:revert_listify
Open

Revert #27397: Use shlex.split for executables in config file#27421
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:revert_listify

Conversation

@sbc100

@sbc100 sbc100 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This ended up breaking emsdk in ways that would require more complexity to fix. See emscripten-core/emsdk#1752.

This issue is that if emsdk is installed in the path contains spaces the NODE_JS path, for example, then needs to be quoted correctly in the config file. e.g. `NODE_JS = '"path with spaces/bin/node"'.

Instead I think we should just revert this change. It turns out not to be needed for #27401 anyway since the LLVM_ROOT is never a list anyway.

…ig file

This ended up breaking emsdk in ways that would require more complexity
to fix.  See emscripten-core/emsdk#1752.

This issue is that if emsdk is installed in the path contains spaces
the NODE_JS path, for example, then needs to be quoted correctly
in the config file.  e.g. `NODE_JS = '"path with spaces/bin/node"'.

Instead I think we should just revert this change.  It turns out
not to be needed for emscripten-core#27401 anyway since the LLVM_ROOT is never
a list anyway.
@sbc100
sbc100 requested a review from kripken July 27, 2026 17:17
Comment thread tools/config.py
if x is None or type(x) is list:
return x
if type(x) is list:
logger.warning(f'Found list-style config entry ({x}). Please use a single string with spaces between args.')

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kripken I know you weren't a fan of adding this warning in the first place so you'll be glad to see this reverted.

@sbc100
sbc100 requested a review from dschuff July 27, 2026 17:18
@sbc100

sbc100 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator Author

I'll trigger another release as soon as this lands so that emscripten-core/emsdk#1752 can be fixed. This does mean that 6.0.4 itself will always be broken for emsdk users who install emskd in path with spaces.

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.

1 participant