From 243463b02294fc41e76bcbf4f424d1c12c0a7073 Mon Sep 17 00:00:00 2001 From: Jason Beetham Date: Fri, 6 Dec 2024 23:44:13 -0700 Subject: [PATCH] Fix windows building to use proper path --- src/wasm3/wasm3c.nim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wasm3/wasm3c.nim b/src/wasm3/wasm3c.nim index a407452..1f8a776 100644 --- a/src/wasm3/wasm3c.nim +++ b/src/wasm3/wasm3c.nim @@ -9,7 +9,12 @@ when defined(mingw): else: import std/paths -const wasmDir = currentSourcePath().Path.parentDir().string.nativeToUnixPath.Path / Path"wasm3c" / Path"source" +const wasmDir = + when defined(mingw): + currentSourcePath().Path.parentDir().string.nativeToUnixPath.Path / Path"wasm3c" / Path"source" + else: + currentSourcePath().Path.parentDir() / Path"wasm3c" / Path"source" + {.passC: "-I" & wasmDir.string.}