Skip to content

Commit 86b8efc

Browse files
authored
fix: work around more path separator mismatches in static block (#67)
1 parent cb48012 commit 86b8efc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

boringssl.nim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ elif defined(windows):
2727
localPassC:
2828
"-D_HAS_EXCEPTIONS=0 -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS"
2929
.}
30+
{.passl: "-lstdc++".}
3031

3132
when defined(i386):
3233
{.passc: "-msse2".}
@@ -197,15 +198,16 @@ when BORINGSS_USE_ASM:
197198
result = newStmtList()
198199
for f in files:
199200
let (_, name, _) = splitFile(f)
200-
let obj = (outDir / name) & ".obj"
201+
let obj = normalizePath((outDir / name) & ".obj", dirSep = '/')
201202
let objLit = newLit(obj)
202203
result.add quote do:
203204
{.link: `objLit`.}
204205

205206
static:
206207
for asmPathRel in asmFiles:
207208
let asmPath = normalizePath(baseDir / asmPathRel, dirSep = '/')
208-
let outObj = outDir / (asmPath.splitFile.name & ".obj")
209+
let outObj =
210+
normalizePath(outDir / (asmPath.splitFile.name & ".obj"), dirSep = '/')
209211
let hashPath = outObj & ".md5"
210212
let srcHash = getMD5(staticRead(asmPath))
211213
let cachedHash =

0 commit comments

Comments
 (0)