summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/cgen.nim3
-rw-r--r--compiler/jsgen.nim3
2 files changed, 6 insertions, 0 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 250044601..918bec0f9 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -1635,6 +1635,9 @@ proc cgenWriteModules*(backend: RootRef, config: ConfigRef) =
   # deps are allowed (and the system module is processed in the wrong
   # order anyway)
   g.config = config
+  let (outDir, _, _) = splitFile(config.outfile)
+  if not outDir.isEmpty:
+    createDir(outDir)
   if g.generatedHeader != nil: finishModule(g.generatedHeader)
   while g.forwardedProcsCounter > 0:
     for m in cgenModules(g):
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index f91bfda8c..1be8629b9 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -2345,6 +2345,9 @@ proc myClose(graph: ModuleGraph; b: PPassContext, n: PNode): PNode =
         else: AbsoluteFile(getCurrentDir() / m.config.outFile.string)
       else:
         changeFileExt(completeCFilePath(m.config, AbsoluteFile f), ext)
+    let (outDir, _, _) = splitFile(outfile)
+    if not outDir.isEmpty:
+      createDir(outDir)
     discard writeRopeIfNotEqual(genHeader() & code, outfile)
     for obj, content in items(globals.classes):
       genClass(m.config, obj, content, ext)
bit.com> 2010-06-24 22:41:20 +0200 committer hut <hut@lavabit.com> 2010-06-24 22:41:20 +0200 ext.human_readable: more efficient implementation' href='/akspecs/ranger/commit/ranger/ext/human_readable.py?id=7bc8b3fc32b44a8db8bfb321423a1bb7718350ab'>7bc8b3fc ^
c518f34e ^
7bc8b3fc ^
c518f34e ^
7bc8b3fc ^
c518f34e ^
7bc8b3fc ^




643c016c ^
7bc8b3fc ^


643c016c ^
7bc8b3fc ^


643c016c ^
7bc8b3fc ^


643c016c ^
7bc8b3fc ^


643c016c ^
7bc8b3fc ^



c518f34e ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55