skoppe / spasm

Write single page applications in D that compile to webassembly
MIT License
218 stars 17 forks source link

Problems trying to compile canvas example #54

Open Zireael07 opened 4 years ago

Zireael07 commented 4 years ago

dub build --compiler=ldc2 --build=release as well as dub build --build=release --build-mode=allAtOnce result in;

source/app.d(9,17): Error: @safe function _start cannot access __gshared data document source/app.d(14,15): Error: @safe function _start cannot access __gshared data document /home/kasia/dlang/ldc-1.20.1/bin/ldc2 failed with exit code 1.

Trying to build with --combined flag resulted in a slew of errors from it erroneously trying to use the runtime (#15)

Contrary to most people reporting, I am not on Windows, but on Linux Manjaro.

My dub.json:

{ "authors": [ "KM" ], "copyright": "Copyright © 2020, KM", "dependencies": { "spasm": "~>0.1.13" }, "dflags": ["-mtriple=wasm32-unknown-unknown-wasm", "-Oz", "-betterC", "-fvisibility=hidden"], "description": "A minimal D application.", "license": "proprietary", "name": "roguelike" }