Skip to content

Create launcher scripts as part of bootstrap.py#20433

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:bootstrap2
Open

Create launcher scripts as part of bootstrap.py#20433
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:bootstrap2

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 10, 2023

Followup to #19736

This allows us to do is delete all the checked in launcher files from the top level directory. This in turn means we can create just the .bat file launchers on windows and just the .sh launchers on non-windows. The is a small step towards having a much cleaner top-level directory.

Note that I have left the launchers for emcc checked-in (at least for the transition period) so that new users will see the error message and know to run bootstrap.py if they run emcc on a fresh checkout.

@sbc100 sbc100 requested review from RReverser and kripken October 10, 2023 17:54
@sbc100
Copy link
Collaborator Author

sbc100 commented Oct 10, 2023

I'll probably wait until the next release before landing this so that folks are already used to running the bootstrap script.

@RReverser
Copy link
Collaborator

I'll probably wait until the next release before landing this so that folks are already used to running the bootstrap script.

I'll jump bump up my feature request for adding a git hook (at least optional). I can totally see myself regularly forgetting to run bootstrap.py when switching branches and wondering why stuff breaks locally. Bisect is another case where, as you mentioned yourself, it would be immensely useful.

@sbc100
Copy link
Collaborator Author

sbc100 commented Oct 10, 2023

I'll probably wait until the next release before landing this so that folks are already used to running the bootstrap script.

I'll jump bump up my feature request for adding a git hook (at least optional). I can totally see myself regularly forgetting to run bootstrap.py when switching branches and wondering why stuff breaks locally. Bisect is another case where, as you mentioned yourself, it would be immensely useful.

Yeah.. how about ./bootstrap.py --install-hook for that?

@RReverser
Copy link
Collaborator

Yeah.. how about ./bootstrap.py --install-hook for that?

Sure, sgtm.

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.

lgtm, good ideas to keep emcc files for now, and to land this only after the next release, and to have a git hook option.

Followup to emscripten-core#19736

This allows us to do is delete all the checked in launcher files from
the top level directory.  This in turn means we can create just the
`.bat` file launchers on windows and just the `.sh` launchers on
non-windows.  The is a small step towards having a much cleaner
top-level directory.

Note that I have left the launchers for emcc checked-in (at least for
the transition period) so that new users will see the error message and
know to run `bootstrap.py` if they run `emcc` on a fresh checkout.
@sbc100 sbc100 closed this Jan 3, 2025
@sbc100 sbc100 deleted the bootstrap2 branch January 3, 2025 22:45
@sbc100 sbc100 restored the bootstrap2 branch January 3, 2025 23:01
@sbc100 sbc100 reopened this Jan 3, 2025
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