diff options
| author | Joey Yakimowich-Payne <jyapayne@gmail.com> | 2018-07-08 22:50:34 +0900 |
|---|---|---|
| committer | Joey Yakimowich-Payne <jyapayne@gmail.com> | 2018-07-08 22:50:34 +0900 |
| commit | 15d417d2c5f6b3a5d25aaa5506a60201dc4f36cc (patch) | |
| tree | 43ac732419d1c64869d8e2e3038dc343a0eb5637 | |
| parent | 4c45a5f5b2a7e75da707f450c330a20d8126ae9b (diff) | |
| download | nimgen-15d417d2c5f6b3a5d25aaa5506a60201dc4f36cc.tar.gz nimgen-15d417d2c5f6b3a5d25aaa5506a60201dc4f36cc.zip | |
Remove dir sep from replace
| -rw-r--r-- | nimgen.nim | 4 |
1 files changed, 2 insertions, 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 |
