From 22ce05ef1699c6e9a5aa22ab873521d9b9957c25 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 21 Dec 2016 12:15:47 +0100 Subject: fixes recently introduced regression --- compiler/cgen.nim | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index a4e426025..2fcc80eda 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -732,12 +732,10 @@ proc genProcNoForward(m: BModule, prc: PSym) = # dependency to a compilerproc: discard cgsym(m, prc.name.s) return - if sfImportc in prc.flags: + if lfNoDecl in prc.loc.flags: fillProcLoc(m, prc) - if lfHeader in prc.loc.flags: - useHeader(m, prc) - elif lfNoDecl notin prc.loc.flags: - genProcPrototype(m, prc) + useHeader(m, prc) + genProcPrototype(m, prc) elif prc.typ.callConv == ccInline: # We add inline procs to the calling module to enable C based inlining. # This also means that a check with ``q.declaredThings`` is wrong, we need @@ -762,13 +760,17 @@ proc genProcNoForward(m: BModule, prc: PSym) = symInDynamicLib(q, prc) else: symInDynamicLibPartial(m, prc) - else: + elif sfImportc notin prc.flags: var q = findPendingModule(m, prc) fillProcLoc(q, prc) useHeader(m, prc) genProcPrototype(m, prc) if q != nil and not containsOrIncl(q.declaredThings, prc.id): genProcAux(q, prc) + else: + fillProcLoc(m, prc) + useHeader(m, prc) + if sfInfixCall notin prc.flags: genProcPrototype(m, prc) proc requestConstImpl(p: BProc, sym: PSym) = var m = p.module -- cgit 1.4.1-2-gfad0 '>commit diff stats
path: root/doc/packaging.rst
blob: 7976dfe92fc368bf28bd6b9820812895b5005f9f (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77