Skip to content

Commit 5fae47b

Browse files
committed
flake: Add better comment on why we need to use clang
1 parent 954e689 commit 5fae47b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
# https://docs.rs/getrandom/0.3.3/getrandom/#webassembly-support
1717
RUSTFLAGS = "--cfg getrandom_backend=\"wasm_js\"";
1818

19-
# gcc is default
19+
# With gcc (default), the WASM build fails silently
20+
# at runtime there is an error message similar to https://github.com/DioxusLabs/dioxus/discussions/3807.
21+
# Maybe this can be resolved with dioxus 0.7.0 due to https://github.com/DioxusLabs/dioxus/issues/4023.
2022
CC_wasm32_unknown_unknown = "${pkgs.llvmPackages.clang-unwrapped}/bin/clang";
2123

22-
# include path to standard library is missing by default
24+
# Include path to standard library is missing by default.
2325
CFLAGS_wasm32_unknown_unknown = "-I${pkgs.llvmPackages.clang}/resource-root/include/";
2426
};
2527
};

0 commit comments

Comments
 (0)