largenumberhere

Results 8 comments of largenumberhere

This is cool but I'd say it's arguably less safe because it relies on undefined behaviour in the rust compiler. This approach tries to use invalid memory and the effect...

> I've not tried myself so far, but I believe you're meant to use [cross](https://github.com/cross-rs/cross#supported-targets) as the compiler and use their command, which would be something like `cross build --target...

> I looked into the error logs, seemed like something related to CMake, but can't be sure. But I did find [a resource for building for web](https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)). Took some thorough...

> @largenumberhere You manage to compile to WASM? > > I'm using these flags, which compile, but produce an error in the browser. https://github.com/Captainfl4me/rust-raylib-spline/blob/master/build_wasm. > > My raylib code fetches...

> For future reference, building for WASM on 5.5 will not require the huge block of environment variables as we will use cmake to compile. I look forward to it

> Try putting `bootloader` in the normal `dependencies` section, not `dev-dependencies`. You'll also need to downgrade its version to 0.10 (0.11 doesn't work with bootimage). Thanks for the suggestion, I...

> My bad, you actually need to downgrade bootloader to 0.9. Okay, so 0.9 does build the kernel but now I get a panic at runtime in qemu. (Typed out...

> Don't use `x86_64-unknown-none`, use your own target. It might also be possible to set `-C relocation-model=static` in RUSTFLAGS instead. Using a custom target seems to have fixed the issue....