Skip to content

fix(win): meson cross-file uses double quotes; meson rejects on Windows #113

Closed

Description

@zackees

Bug

After fixing #111, a fresh fastled --just-compile --quick on Windows fails with:

[WASM] Configuring meson (mode: quick)...

ERROR: Malformed value in machine file variable 'c': Double quotes are not supported. Use single quotes.
["python.exe", "C:/Users/niteris/.fastled/toolchains/emscripten/win/x86_64/4.0.19/emscripten/emcc.py"
 ^.
Native Rust WASM build failed: meson setup failed with exit code: 1

Cause

write_native_cross_file in crates/fastled-cli/src/wasm_build.rs formats binary paths with Rust's {:?} debug specifier, which produces double-quoted JSON-style strings. Meson's INI parser explicitly forbids double quotes in machine-file values.

Fix

Wrap the path strings with single quotes (escaping any embedded apostrophes) instead of relying on {:?}.

Activity

  1. zackees commented on Jun 2, 2026

    @zackees
    MemberAuthor

    Resolved by merged PR #118 (e008ca3e). Current origin/main rewrites the native Meson cross-file generation path in wasm_build.rs and PR #118 added meson-quote regression coverage so machine-file values are no longer emitted with Meson-rejected double quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions