fixes for niminst

This commit is contained in:
Araq 2013-09-28 00:03:47 +02:00
commit 30f1877135
2 changed files with 5 additions and 8 deletions

View file

@ -1,11 +1,6 @@
version 0.9.4 version 0.9.4
============= =============
- fails in release mode:
nimrod compile -f --symbolFiles:off --compileOnly --gen_mapping --cc:gcc
--skipUserCfg --os:haiku --cpu:amd64 -d:relase compiler/nimrod.nim
- new VM: - new VM:
- implement the glue to replace evals.nim - implement the glue to replace evals.nim
- implement missing magics - implement missing magics

View file

@ -410,6 +410,8 @@ proc writeFile(filename, content, newline: string) =
proc removeDuplicateFiles(c: var TConfigData) = proc removeDuplicateFiles(c: var TConfigData) =
for osA in countdown(c.oses.len, 1): for osA in countdown(c.oses.len, 1):
for cpuA in countdown(c.cpus.len, 1): for cpuA in countdown(c.cpus.len, 1):
if c.cfiles[osA][cpuA].isNil: c.cfiles[osA][cpuA] = @[]
if c.explicitPlatforms and not c.platforms[osA][cpuA]: continue
for i in 0..c.cfiles[osA][cpuA].len-1: for i in 0..c.cfiles[osA][cpuA].len-1:
var dup = c.cfiles[osA][cpuA][i] var dup = c.cfiles[osA][cpuA][i]
var f = extractFilename(dup) var f = extractFilename(dup)
@ -440,12 +442,12 @@ proc srcdist(c: var TConfigData) =
var intel64Index = -1 var intel64Index = -1
for osA in 1..c.oses.len: for osA in 1..c.oses.len:
let osname = c.oses[osA-1] let osname = c.oses[osA-1]
if osname.cmpIgnoreStyle("windows") == 0: winIndex = osA-1 if osname.cmpIgnoreStyle("windows") == 0: winIndex = osA
for cpuA in 1..c.cpus.len: for cpuA in 1..c.cpus.len:
if c.explicitPlatforms and not c.platforms[osA][cpuA]: continue if c.explicitPlatforms and not c.platforms[osA][cpuA]: continue
let cpuname = c.cpus[cpuA-1] let cpuname = c.cpus[cpuA-1]
if cpuname.cmpIgnoreStyle("i386") == 0: intel32Index = cpuA-1 if cpuname.cmpIgnoreStyle("i386") == 0: intel32Index = cpuA
elif cpuname.cmpIgnoreStyle("amd64") == 0: intel64Index = cpuA-1 elif cpuname.cmpIgnoreStyle("amd64") == 0: intel64Index = cpuA
var dir = getOutputDir(c) / buildDir(osA, cpuA) var dir = getOutputDir(c) / buildDir(osA, cpuA)
if existsDir(dir): removeDir(dir) if existsDir(dir): removeDir(dir)
createDir(dir) createDir(dir)