Skip to content

Commit 347360a

Browse files
TimmmmNoratrieb
andauthored
Don't implement current_dll_path() for any WASI version
This applies to all WASI so there's no reason to limit it to p2. Co-authored-by: nora <[email protected]>
1 parent 16d441b commit 347360a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/filesearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ fn current_dll_path() -> Result<PathBuf, String> {
168168
Ok(OsString::from_wide(&filename).into())
169169
}
170170

171-
#[cfg(all(target_os = "wasi", target_env = "p2"))]
171+
#[cfg(target_os = "wasi")]
172172
fn current_dll_path() -> Result<PathBuf, String> {
173173
Err("current_dll_path is not supported on WASI".to_string())
174174
}

0 commit comments

Comments
 (0)