Compile Delphi source with the WASM Compiler

Thanx.

E: Reference file gc.fx has platform “WebAssembly”, should be “Windows”

This one is curious. Is your project type Windows or WebAssembly? It seems you’re referencing the WebAssembly version of this library (good, if you want to build for WebAssembly), but somehow the compile rthings its building for Windows. Can i see the project (just the .elements is fine, if you don’t want to/cannot share the code).

E: semicolon (:wink: expected, got identifier [C:\Program Files (x86)\Embarcadero\Studio\37.0\source\rtl\sys\System.SysUtils.pas (92)]
E: equals (=) expected, got semicolon (:wink: [C:\Program Files (x86)\Embarcadero\Studio\37.0\source\rtl\sys\System.SysUtils.pas (92)]

It seems these come from the use of the platform keyword, which will work, but only if Delphi Compatibility Mode is turned on for the project (it looks like it’s not, given that platform doesn’t highlight as a keyword. Can you check that?

Also for clarity, are you using the very latest version, .3071?

thanx,
marc