Skip to content

Do not bootstrap struct_info.json using WasmFS - #18916

Closed
kripken wants to merge 1 commit into
mainfrom
wasmfs.struct_info
Closed

kripken wants to merge 1 commit into
mainfrom
wasmfs.struct_info

Conversation

@kripken

@kripken kripken commented Mar 7, 2023

Copy link
Copy Markdown
Member

Atm it doesn't work due to needing malloc/free, but there are
also a few other issues we'd need to fix I think. But bootstrapping
doesn't need a filesystem anyhow, so WasmFS doesn't make
sense there, so let's just disable WasmFS when doing that.

Fixes the issue noticed here:

#15976 (comment)

@kripken
kripken requested a review from sbc100 March 7, 2023 20:59
@kripken kripken mentioned this pull request Mar 7, 2023
Comment thread tools/gen_struct_info.py
# We don't need a filesystem when bootstrapping
# anyhow, so there is no real reason to get this
# working in that mode.
'-sWASMFS=0',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think this is worth landed. I think its fine for this code to have knowledge of the defaults.

I think there are many settings that, if enabled by default, would cause this code here to break. This code just needs to be kept up-to-date as the defaults change.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fair points. This is a setting we intend to flip the default on eventually, though, so I thought this could save us some effort at that future time. But I don't feel strongly, so closing.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I imagine by the time we flip the default one the the requirements will likely be "Make sure gen_struct_info works with wasmfs".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Perhaps, yeah.

@kripken kripken closed this Mar 7, 2023
@kripken
kripken deleted the wasmfs.struct_info branch March 7, 2023 21:38
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