Skip to content

Commit

Permalink
WasmFS: Enable wasm64.test_unistd_access under wasmfs (#23203)
Browse files Browse the repository at this point in the history
Fix the signatures of several native wasmfs exports. These are only
needed/relevant under wasm64.
  • Loading branch information
sbc100 authored Dec 17, 2024
1 parent 9148ca0 commit 78177f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5882,7 +5882,7 @@ def test_sigaction_default(self, signal, exit_code, assert_identical):
)

@crossplatform
@also_with_nodefs_both
@with_all_fs
def test_unistd_access(self):
nodefs = '-DNODEFS' in self.emcc_args or '-DNODERAWFS' in self.emcc_args
if self.get_setting('WASMFS'):
Expand Down
3 changes: 3 additions & 0 deletions tools/emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,9 @@ def create_pointer_conversion_wrappers(metadata):
'__cxa_get_exception_ptr': 'pp',
'_wasmfs_write_file': '_ppp',
'_wasmfs_mknod': '_p__',
'_wasmfs_symlink': '_pp',
'_wasmfs_chmod': '_p_',
'_wasmfs_lchmod': '_p_',
'_wasmfs_get_cwd': 'p_',
'_wasmfs_identify': '_p',
'_wasmfs_read_file': 'pp',
Expand Down

0 comments on commit 78177f7

Please sign in to comment.