quickjs
quickjs copied to clipboard
get it full compiled on msys2 with mingw32
Hi.
So far I enabled CONFIG_WIN32=y in Makefile, installed libdl contained in dlfcn with pacman -S mingw-w64-i686-dlfcn after getting errors about -ldl, disabled CROSS_PREFIX=x86_64-w64-mingw32- setting to empty value CROSS_PREFIX=
and now compiles up to first examples/hello.exe which is just a console.log("Hello World"); getting it 1.9Mb.
With this steps I got to compile qjs.exe, qjsc.exe, run-test262.exe, and hello.exe
Now it stops here, and I am out of clues:
lto-wrapper.exe: note: see the '-flto' option documentation for more information
./qjsc.exe -fno-string-normalize -fno-map -fno-promise -fno-typedarray -fno-typedarray -fno-regexp -
fno-json -fno-eval -fno-proxy -fno-date -m -o examples/hello_module examples/hello_module.js
Executable output is not supported for this target
make: *** [Makefile:343: examples/hello_module] Error 1
You can try to disable Link Time Optimisation by commenting "CONFIG_LTO=y" in the Makefile