Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
This commit is contained in:
commit
ad29bed942
3 changed files with 7 additions and 1 deletions
|
|
@ -1050,6 +1050,7 @@ proc getSomeInitName(m: PSym, suffix: string): PRope =
|
|||
assert m.owner.kind == skPackage
|
||||
if {sfSystemModule, sfMainModule} * m.flags == {}:
|
||||
result = m.owner.name.s.mangle.toRope
|
||||
result.app "_"
|
||||
result.app m.name.s
|
||||
result.app suffix
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,11 @@ proc writeVersionInfo(pass: TCmdLinePass) =
|
|||
msgWriteln(`%`(HelpMessage, [VersionAsString,
|
||||
platform.OS[platform.hostOS].name,
|
||||
CPU[platform.hostCPU].name]))
|
||||
|
||||
const gitHash = gorge("git log -n 1 --format=%H")
|
||||
if gitHash.strip.len == 40:
|
||||
msgWriteln("git hash: " & gitHash)
|
||||
|
||||
msgWriteln("active boot switches:" & usedRelease & usedAvoidTimeMachine &
|
||||
usedTinyC & usedGnuReadline & usedNativeStacktrace & usedNoCaas &
|
||||
usedFFI & usedBoehm & usedMarkAndSweep & usedGenerational & usedNoGC)
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ proc newModule(fileIdx: int32): PSym =
|
|||
new(result)
|
||||
result.id = - 1 # for better error checking
|
||||
result.kind = skModule
|
||||
let filename = fileIdx.toFilename
|
||||
let filename = fileIdx.toFullPath
|
||||
result.name = getIdent(splitFile(filename).name)
|
||||
if not isNimrodIdentifier(result.name.s):
|
||||
rawMessage(errInvalidModuleName, result.name.s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue