better code generation for constant aggregates
This commit is contained in:
parent
47f523cfb8
commit
351e89e705
10 changed files with 79 additions and 32 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue