Remove dir sep from replace
This commit is contained in:
parent
4c45a5f5b2
commit
15d417d2c5
1 changed files with 2 additions and 2 deletions
|
|
@ -491,7 +491,7 @@ proc c2nim(fl, outfile: string, c2nimConfig: c2nimConfigObj) =
|
|||
passC &= "import ospaths\n"
|
||||
|
||||
for inc in gIncludes:
|
||||
let relativeInc = inc.replace(gOutput & $DirSep, "")
|
||||
let relativeInc = inc.replace(gOutput, "")
|
||||
passC &= (
|
||||
"""{.passC: "-I\"" & currentSourcePath().splitPath().head & "/$#\"".}""" %
|
||||
[relativeInc]
|
||||
|
|
@ -501,7 +501,7 @@ proc c2nim(fl, outfile: string, c2nimConfig: c2nimConfigObj) =
|
|||
outpragma &= "{." & prag & ".}\n"
|
||||
|
||||
let fname = file.splitFile().name.replace(re"[\.\-]", "_")
|
||||
let fincl = file.replace(gOutput & $DirSep, "")
|
||||
let fincl = file.replace(gOutput, "")
|
||||
|
||||
if c2nimConfig.dynlib.len() != 0:
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue