Turn loadDynamicLib msg into hintDependency

This commit is contained in:
Adam Strzelecki 2015-06-06 11:22:49 +02:00
commit 00366cb8d4
2 changed files with 7 additions and 5 deletions

View file

@ -505,8 +505,7 @@ proc loadDynamicLib(m: BModule, lib: PLib) =
if lib.path.kind in {nkStrLit..nkTripleStrLit}: if lib.path.kind in {nkStrLit..nkTripleStrLit}:
var s: TStringSeq = @[] var s: TStringSeq = @[]
libCandidates(lib.path.strVal, s) libCandidates(lib.path.strVal, s)
if gVerbosity >= 2: rawMessage(hintDependency, lib.path.strVal)
msgWriteln("Dependency: " & lib.path.strVal)
var loadlib: Rope = nil var loadlib: Rope = nil
for i in countup(0, high(s)): for i in countup(0, high(s)):
inc(m.labels) inc(m.labels)

View file

@ -126,7 +126,7 @@ type
hintConvFromXtoItselfNotNeeded, hintExprAlwaysX, hintQuitCalled, hintConvFromXtoItselfNotNeeded, hintExprAlwaysX, hintQuitCalled,
hintProcessing, hintCodeBegin, hintCodeEnd, hintConf, hintPath, hintProcessing, hintCodeBegin, hintCodeEnd, hintConf, hintPath,
hintConditionAlwaysTrue, hintName, hintPattern, hintConditionAlwaysTrue, hintName, hintPattern,
hintExecuting, hintLinking, hintExecuting, hintLinking, hintDependency,
hintUser hintUser
const const
@ -419,6 +419,7 @@ const
hintPattern: "$1", hintPattern: "$1",
hintExecuting: "$1", hintExecuting: "$1",
hintLinking: "", hintLinking: "",
hintDependency: "$1",
hintUser: "$1"] hintUser: "$1"]
const const
@ -434,10 +435,10 @@ const
"ProveInit", "ProveField", "ProveIndex", "GcUnsafe", "GcUnsafe2", "Uninit", "ProveInit", "ProveField", "ProveIndex", "GcUnsafe", "GcUnsafe2", "Uninit",
"GcMem", "Destructor", "LockLevel", "ResultShadowed", "User"] "GcMem", "Destructor", "LockLevel", "ResultShadowed", "User"]
HintsToStr*: array[0..18, string] = ["Success", "SuccessX", "LineTooLong", HintsToStr*: array[0..19, string] = ["Success", "SuccessX", "LineTooLong",
"XDeclaredButNotUsed", "ConvToBaseNotNeeded", "ConvFromXtoItselfNotNeeded", "XDeclaredButNotUsed", "ConvToBaseNotNeeded", "ConvFromXtoItselfNotNeeded",
"ExprAlwaysX", "QuitCalled", "Processing", "CodeBegin", "CodeEnd", "Conf", "ExprAlwaysX", "QuitCalled", "Processing", "CodeBegin", "CodeEnd", "Conf",
"Path", "CondTrue", "Name", "Pattern", "Exec", "Link", "Path", "CondTrue", "Name", "Pattern", "Exec", "Link", "Dependency",
"User"] "User"]
const const
@ -495,11 +496,13 @@ const
warnGcUnsafe, warnGcUnsafe,
hintSuccessX, hintPath, hintConf, hintSuccessX, hintPath, hintConf,
hintProcessing, hintProcessing,
hintDependency,
hintExecuting, hintLinking, hintExecuting, hintLinking,
hintCodeBegin, hintCodeEnd}, hintCodeBegin, hintCodeEnd},
{low(TNoteKind)..high(TNoteKind)} - {warnShadowIdent, warnUninit, {low(TNoteKind)..high(TNoteKind)} - {warnShadowIdent, warnUninit,
warnProveField, warnProveIndex, warnProveField, warnProveIndex,
warnGcUnsafe, warnGcUnsafe,
hintDependency,
hintExecuting, hintExecuting,
hintCodeBegin, hintCodeEnd}, hintCodeBegin, hintCodeEnd},
{low(TNoteKind)..high(TNoteKind)}, {low(TNoteKind)..high(TNoteKind)},