Skip to content

Commit

Permalink
Merge pull request #386 from rickwebiii/rweber/emscripten
Browse files Browse the repository at this point in the history
enable proc_macro on wasm32-unknown-emscripten
  • Loading branch information
dtolnay authored May 25, 2023
2 parents c4425f9 + b8e751a commit 22544fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn main() {

fn enable_use_proc_macro(target: &str) -> bool {
// wasm targets don't have the `proc_macro` crate, disable this feature.
if target.contains("wasm32") {
if target.contains("wasm32") && target != "wasm32-unknown-emscripten" {
return false;
}

Expand Down

0 comments on commit 22544fe

Please sign in to comment.