-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Nim Version
2.2.4
Description
When cross-compiling with --os:windows on linux, currentSourcePath switches to \ as path separator, and staticRead can no longer read the result.
# broken:
const LLVMVersion* = staticRead(currentSourcePath.parentDir & "/llvm.version")
# workaround:
const LLVMVersion* = staticRead(currentSourcePath.parentDir.normalizePath(dirSep = '/') & "/llvm.version")Current Output
nim c --os:windows -c llvm.nim:
llvm.nim(8, 28) Error: cannot open file: \src\nlvm\llvm/llvm.version
Expected Output
Known Workarounds
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels