Skip to content

Commit

Permalink
Fix windows building to use proper path
Browse files Browse the repository at this point in the history
  • Loading branch information
beef331 committed Dec 7, 2024
1 parent 78f0adf commit 243463b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/wasm3/wasm3c.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.}


Expand Down

0 comments on commit 243463b

Please sign in to comment.