Skip to content

Remove stripping of individual command line arguments in emcc.py. #16115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 26, 2022

This was originally introduced 10 years ago to work around a bug that
occurred on windows vista (See
4ab1c8a). Its not clear if the bug was
in cmake or in windows itself, or in the version of python.

Windows Vista has been unsupported for a very long time now so I think
even attempted to verify this bug still exists would be very tricky.

What is more, the underlying tools such as clang don't support this
behavior so any user who suffered from this bug likely wouldn't be
able ot use clang outside of emscripten. For example:

clang ' --version'
clang: error: no such file or directory: ' --version'; did you mean '--version'?
clang: error: no input files

I don't know of any tools that don't work like that above, so I don't
see why we should be any different.

The motivation for removing this now is that it came up in discussion
when working on code nearby (#16087) and it seems to pointless at best
and incomaptiable at worst (since it prevents the use of
filenames that start or end in space).

This was originally introduced 10 years ago to work around a bug that
occurred on windows vista (See
4ab1c8a).  Its not clear if the bug was
in cmake or in windows itself, or in the version of python.

Windows Vista has been unsupported for a very long time now so I think
ever attempted to verify this bug still exists would be very tricky.

What is more, the underlying tools such as clang don't support this
behavior so any user who suffered from this bug likely wouldn't be
able ot use clang outside of emscripten.  For example:

```
clang ' --version'
clang: error: no such file or directory: ' --version'; did you mean '--version'?
clang: error: no input files
```

I don't know of any tools that don't work like that above, so I don't
see why we should be any different.

The motivation for removing this now is that it came up in discussion
when working on code nearby (#16087) and it seems to pointless at best
and is also a compatibility issue (since it prevents the use of
filenames that start or end in space).
@sbc100 sbc100 force-pushed the remove_argument_stripping branch from 57c3352 to 78dc4bf Compare January 26, 2022 18:25
@sbc100 sbc100 requested review from RReverser and kripken January 26, 2022 18:25
@sbc100 sbc100 enabled auto-merge (squash) January 26, 2022 18:26
@sbc100 sbc100 disabled auto-merge January 26, 2022 18:26
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

If this is still an issue CI will tell us I guess...

@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 26, 2022

If this is still an issue CI will tell us I guess...

I think its been many years since we have windows vista bots though.

@sbc100 sbc100 enabled auto-merge (squash) January 26, 2022 18:30
@sbc100 sbc100 merged commit 24d63c2 into main Jan 26, 2022
@sbc100 sbc100 deleted the remove_argument_stripping branch January 26, 2022 21:24
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