From be16dfd19576ac972031006bbfdb1c881ab4fdfd Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 13 Dec 2017 22:16:37 +0100 Subject: [PATCH] make tests green again --- compiler/ccgtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 0c7e60eac9..c9cd3b1250 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -925,7 +925,7 @@ proc genProcHeader(m: BModule, prc: PSym): Rope = result.add "N_LIB_EXPORT " elif prc.typ.callConv == ccInline: result.add "static " - else: + elif {sfImportc, sfExportc} * prc.flags == {}: result.add "N_LIB_PRIVATE " var check = initIntSet() fillLoc(prc.loc, locProc, prc.ast[namePos], mangleName(m, prc), OnUnknown)