-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Implement mmap and msync for NODERAWFS #13052
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
Conversation
tests/test_core.py
Outdated
src = path_from_root('tests', 'fs', 'test_mmap.c') | ||
out = path_from_root('tests', 'fs', 'test_mmap.out') | ||
self.emcc_args = orig_compiler_opts + ['-D' + fs] | ||
if fs == 'NODEFS': | ||
self.emcc_args += ['-lnodefs.js'] | ||
if fs == 'NODERAWFS': | ||
self.emcc_args += ['-sNODERAWFS=1'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does -lnoderawfs.js
work? (like the line two lines above?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That works too, but in that case also -lnodefs.js
needs to be linked.
(Perhaps we could just synonym -sNODERAWFS=1
with -lnoderawfs.js
? See for e.g. kleisauke@b3607b9)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I included -lnodefs.js
and -lnoderawfs.js
with commit kleisauke@244e478, but perhaps this (i.e. ['-sNODERAWFS=1']
-> ['-lnodefs.js', '-lnoderawfs.js']
) should be done throughout the whole test suite? Let me know if you want a separate PR for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with the errno change.
+ add a test case that covers this. (this commit fixes also a TypeError in $syscallMunmap, which was hit by this test case)
6ac5c09
to
e9ceca1
Compare
Rebased on top of the master branch to resolve merge conflict. |
Similar to #10669 but then for NODERAWFS.