Skip to content

Commit 65b7108

Browse files
authored
fix: reverse slash direction in StdLibAssets prefix on windows (#992)
1 parent 7955b1e commit 65b7108

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/fm/src/file_reader.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use std::path::Path;
77

88
#[derive(RustEmbed)]
99
#[folder = "../../noir_stdlib/src"]
10-
#[prefix = "std/"]
10+
#[cfg_attr(not(target_os = "windows"), prefix = "std/")]
11+
#[cfg_attr(target_os = "windows", prefix = r"std\")] // Note reversed slash direction
1112
struct StdLibAssets;
1213

1314
cfg_if::cfg_if! {

0 commit comments

Comments
 (0)