summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-06-06 11:22:49 +0200
committerAdam Strzelecki <ono@java.pl>2015-07-03 14:05:00 +0200
commit00366cb8d461ba1df443c537fa21bebe838d2f79 (patch)
treec7097a6377712e7ece6597d31913827138924db3
parent18b3d0429186eead448d320612d33387c3e10085 (diff)
downloadNim-00366cb8d461ba1df443c537fa21bebe838d2f79.tar.gz
Turn loadDynamicLib msg into hintDependency
-rw-r--r--compiler/cgen.nim3
-rw-r--r--compiler/msgs.nim9
2 files changed, 7 insertions, 5 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index f4854c988..783949403 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -505,8 +505,7 @@ proc loadDynamicLib(m: BModule, lib: PLib) =
     if lib.path.kind in {nkStrLit..nkTripleStrLit}:
       var s: TStringSeq = @[]
       libCandidates(lib.path.strVal, s)
-      if gVerbosity >= 2:
-        msgWriteln("Dependency: " & lib.path.strVal)
+      rawMessage(hintDependency, lib.path.strVal)
       var loadlib: Rope = nil
       for i in countup(0, high(s)):
         inc(m.labels)
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 20a59a132..3a23d4671 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -126,7 +126,7 @@ type
     hintConvFromXtoItselfNotNeeded, hintExprAlwaysX, hintQuitCalled,
     hintProcessing, hintCodeBegin, hintCodeEnd, hintConf, hintPath,
     hintConditionAlwaysTrue, hintName, hintPattern,
-    hintExecuting, hintLinking,
+    hintExecuting, hintLinking, hintDependency,
     hintUser
 
 const
@@ -419,6 +419,7 @@ const
     hintPattern: "$1",
     hintExecuting: "$1",
     hintLinking: "",
+    hintDependency: "$1",
     hintUser: "$1"]
 
 const
@@ -434,10 +435,10 @@ const
     "ProveInit", "ProveField", "ProveIndex", "GcUnsafe", "GcUnsafe2", "Uninit",
     "GcMem", "Destructor", "LockLevel", "ResultShadowed", "User"]
 
-  HintsToStr*: array[0..18, string] = ["Success", "SuccessX", "LineTooLong",
+  HintsToStr*: array[0..19, string] = ["Success", "SuccessX", "LineTooLong",
     "XDeclaredButNotUsed", "ConvToBaseNotNeeded", "ConvFromXtoItselfNotNeeded",
     "ExprAlwaysX", "QuitCalled", "Processing", "CodeBegin", "CodeEnd", "Conf",
-    "Path", "CondTrue", "Name", "Pattern", "Exec", "Link",
+    "Path", "CondTrue", "Name", "Pattern", "Exec", "Link", "Dependency",
     "User"]
 
 const
@@ -495,11 +496,13 @@ const
                                          warnGcUnsafe,
                                          hintSuccessX, hintPath, hintConf,
                                          hintProcessing,
+                                         hintDependency,
                                          hintExecuting, hintLinking,
                                          hintCodeBegin, hintCodeEnd},
     {low(TNoteKind)..high(TNoteKind)} - {warnShadowIdent, warnUninit,
                                          warnProveField, warnProveIndex,
                                          warnGcUnsafe,
+                                         hintDependency,
                                          hintExecuting,
                                          hintCodeBegin, hintCodeEnd},
     {low(TNoteKind)..high(TNoteKind)},