summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/commands.nim2
-rw-r--r--compiler/extccomp.nim2
-rw-r--r--web/news.txt10
3 files changed, 13 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 02c0b8486..8dacebd83 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -327,7 +327,7 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
       lists.excludePath(options.lazyPaths, strippedPath)
   of "nimcache":
     expectArg(switch, arg, pass, info)
-    options.nimcacheDir = processPath(arg)
+    options.nimcacheDir = processPath(arg, true)
   of "out", "o":
     expectArg(switch, arg, pass, info)
     options.outFile = arg
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 3882bdd03..16a8b8bd4 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -731,6 +731,8 @@ proc callCCompiler*(projectfile: string) =
         builddll = ""
       if options.outFile.len > 0:
         exefile = options.outFile.expandTilde
+        if not exefile.isAbsolute():
+          exefile = getCurrentDir() / exefile
       if not noAbsolutePaths():
         if not exefile.isAbsolute():
           exefile = joinPath(splitFile(projectfile).dir, exefile)
diff --git a/web/news.txt b/web/news.txt
index bd8f893c2..d8c591d53 100644
--- a/web/news.txt
+++ b/web/news.txt
@@ -2,6 +2,16 @@
 News
 ====
 
+2016-XX-XX Version 0.13.1 released
+==================================
+
+Changes affecting backwards compatibility
+-----------------------------------------
+
+- ``--out`` and ``--nimcache`` command line arguments are now relative to
+  current directory. Previously they were relative to project directory.
+
+
 2016-01-27 Nim in Action is now available!
 ==========================================
 
'n181' href='#n181'>181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260