summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-07 22:54:45 +0200
committerAraq <rumpf_a@web.de>2018-08-07 22:54:45 +0200
commitdd753462926430647d102d856f815f735d3f2b20 (patch)
tree943ba726ada829c191afd585ff0a8382cdfcb1cf /compiler
parentd8e66d6acc461d8d280c2ec83f9326206e2f12ef (diff)
downloadNim-dd753462926430647d102d856f815f735d3f2b20.tar.gz
fixes the new nimcache handling
Diffstat (limited to 'compiler')
-rw-r--r--compiler/options.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index 4931b4330..be9342085 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -487,11 +487,12 @@ proc getOsCacheDir(): string =
     result = getHomeDir() / genSubDir
 
 proc getNimcacheDir*(conf: ConfigRef): string =
+  # XXX projectName should always be without a file extension!
   result = if conf.nimcacheDir.len > 0:
              conf.nimcacheDir
            elif conf.cmd == cmdCompileToJS:
              shortenDir(conf, conf.projectPath) / genSubDir
-           else: getOsCacheDir() / conf.projectName &
+           else: getOsCacheDir() / splitFile(conf.projectName).name &
              (if isDefined(conf, "release"): "_r" else: "_d")
 
 proc pathSubs*(conf: ConfigRef; p, config: string): string =