Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 22, 2025

As far as I can tell the compile-time constant was never documented.

Unlike ATEXITS and ATINITS there was never any corresponding addAtMain, and even the ATMAIN symbol itself was already not available in -sSTRICT or -sLEGACY_RUNTIME=0 mode.

It looks like it was specifically added in order to facilitate the sealing of the filesystem in #8083, but its no longer used for that purpose, and we have no current internal usages.

As far as I can tell the compile-time constant was never documented.

Unlike `ATEXITS` and `ATINITS` there was never any corresponding
`addAtMain`, and even the `ATMAIN` symbol itself was already not
available in `-sSTRICT` or `-sLEGACY_RUNTIME=0` mode.

It looks like it was specifically added in order to facilitate the
sealing of the filesystem in emscripten-core#8083, but its no longer used for that
purpose, and we have no current internal usages.
@sbc100 sbc100 requested a review from brendandahl January 22, 2025 23:25
@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 22, 2025

@brendandahl, interestingly enough ATMAINS was originally added specifically to run the ignorePermissions = false code after the rest of the FS.init.

I wonder if we should actually not land this PR and instead split up FS.init?

@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 22, 2025

See #8083

@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 24, 2025

Closing favor of #23488

@sbc100 sbc100 closed this Jan 24, 2025
@sbc100 sbc100 deleted the ATMAIN branch January 24, 2025 22:13
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