diff options
Diffstat (limited to 'compiler/options.nim')
-rwxr-xr-x | compiler/options.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index a4188d81d..640daf808 100755 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -147,7 +147,8 @@ proc removeTrailingDirSep*(path: string): string = result = path proc getGeneratedPath: string = - result = if nimcacheDir.len > 0: nimcacheDir else: projectPath / genSubDir + result = if nimcacheDir.len > 0: nimcacheDir else: projectPath.shortenDir / + genSubDir proc toGeneratedFile*(path, ext: string): string = ## converts "/home/a/mymodule.nim", "rod" to "/home/a/nimcache/mymodule.rod" |