About supporting EMScripten

Ferhat Kurtulmuş aferust at gmail.com
Wed Dec 16 20:07:44 UTC 2020


On Thursday, 6 August 2020 at 10:15:54 UTC, Sebastiaan Koppe 
wrote:
> On Wednesday, 5 August 2020 at 21:46:49 UTC, Hipreme wrote:

> 4) go into the ldc's runtime folder and run `ldc-build-runtime 
> --ninja "--dFlags=-mtriple=wasm32-wasi" --ldcSrcDir=../ 
> CMAKE_TOOLCHAIN_FILE="$WASI_SDK_PREFIX/share/cmake/wasi-sdk.cmake" WASI_SDK_PREFIX=$WASI_SDK_PREFIX BUILD_SHARED_LIBS=OFF` (you may need to build ldc-build-runtime first).

Dear Sebastiaan, I tried the steps you provided. I did it on both 
my ubuntu 16.04 and Win10. I am receiving the same error on both. 
I used WASI-SDK 11 for windows because it is the lowest version 
supporting windows. And please note that the latest WASI-SDK 12 
raises some cmake errors that I cannot remember as of writing 
this.

This one is from Win10
ldc-build-runtime --ninja "--dFlags=-mtriple=wasm32-wasi" 
--ldcSrcDir=../ 
CMAKE_TOOLCHAIN_FILE="%WASI_SDK_PREFIX%/share/cmake/wasi-sdk.cmake" WASI_SDK_PREFIX=%WASI_SDK_PREFIX% BUILD_SHARED_LIBS=OFF

output:
https://gist.github.com/aferust/8dfbce368ebdf6b40e54ce9e9e12daa4

I reported my issues here as you said in your e-mail.

Thanks.


More information about the digitalmars-d-ldc mailing list