Open DynamicField opened 4 weeks ago
This likely due to both
-std=c++17
and/std:c++17
arguments being specified, which causes the compiler to be weirdly confused (see https://github.com/mlua-rs/luau-src-rs/blob/main/src/lib.rs#L116-L117)
flag_if_supported
is generally a safe way to enable only one option supported by compiler.
Seems the issue here is with cc
crate (what version do you use? can you try latest?)
mlua is tested on windows with luau
(see ci job) and this code does not cause any issues yet.
Upgrading the cc crate to the latest version in build-dependencies
(1.0.100) doesn't change anything unfortunately.
The CI job you linked builds on Windows for Windows... but I'm building on Windows for wasm32-unknown-emscripten
. The only CI job that builds for wasm32-unknown-emscripten
is ran on Ubuntu.
When compiling mlua with the
luau
feature usingcargo build -target wasm32-unknown-emscripten
on a Windows machine, an error occurs where the compiler believes that/std:c++17
is a path to a compiled file:This likely due to both
-std=c++17
and/std:c++17
arguments being specified, which causes the compiler to be weirdly confused (see https://github.com/mlua-rs/luau-src-rs/blob/main/src/lib.rs#L116-L117)