cpython linux build mode & python modules build#247
Conversation
Introduces BUILD_MODE=linux to compile_cpython.sh alongside the existing default WASI mode. Linux mode presents ac_sys_system=Linux to configure, enabling shared extension modules, full POSIX APIs, and the lind-run-python HOSTRUNNER wrapper. Source modifications needed for the lind-wasm test runner (pid==1 collision fixes, JSON parsing in run_workers) are now kept as patch files under patches/ and applied to Lib/ before make, reverted after make install — so the installed tree and the native test runner both see them while the source stays clean. WASI mode and all existing behavior is completely unchanged when BUILD_MODE is not set.
|
Ran this. Output is: Most test failures was due to |
|
@qianxichen233 There should be an automated way to run the tests with different grates. As of now, changes has to be done to the exec command within |
vidyalakshmir
left a comment
There was a problem hiding this comment.
@qianxichen233 There should be an automated way to run the tests with different grates. As of now, changes has to be done to the exec command within build-wasm/lind-run-python (which is generated during the python build process) to run different grates. One way is by passing grate type as an argument and handling it within run_tests.sh where it edits the build-wasm/lind-run-python to run the specific grate passed as the argument.
use
BUILD_MODE=linuxto run cpython linux build modebuild process and testing process is exactly the same as before
will need to build with fpcast for better testing success ratio
full command:
build:
BUILD_MODE=linux LIND_DYLINK=1 LIND_FPCAST=1 make cpythoninstall:
make install-cpythontest:
BUILD_MODE=linux LIND_DYLINK=1 APP=cpython make test TESTTIMEOUT=120(timeout might be too aggressive, depends on how fast you want to run the test)