Skip to content

Commit 33d9a90

Browse files
committed
Fix .x dir
1 parent 2e8deec commit 33d9a90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function getEnvVars(target?: string): Record<string, string> {
2323
return {
2424
LZMA_API_STATIC: "1",
2525
LIBTORCH_BYPASS_VERSION_CHECK: "1",
26-
LIBTORCH: Deno.realPathSync(`.x/sysroot/${actualTarget}`),
26+
LIBTORCH: Deno.realPathSync(`${import.meta.dirname}/../.x/sysroot/${actualTarget}`),
2727
LIBTORCH_STATIC: "1",
2828
};
2929
}

playground/src-tauri/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
fn main() {
2+
println!("cargo:rustc-link-search=native=../../../.x/sysroot/{target}/lib");
23
tauri_build::build()
34
}

0 commit comments

Comments
 (0)