got rid of platdef.c; compiler now always does linking step

This commit is contained in:
rumpf_a@web.de 2009-12-20 12:43:28 +01:00
commit f56816def0
12 changed files with 39 additions and 51 deletions

View file

@ -184,6 +184,7 @@ var
proc setTarget*(o: TSystemOS, c: TSystemCPU) =
assert(c != cpuNone)
assert(o != osNone)
#echo "new Target: OS: ", o, " CPU: ", c
targetCPU = c
targetOS = o
intSize = cpu[c].intSize div 8
@ -203,11 +204,6 @@ proc NameToCPU(name: string): TSystemCPU =
return i
result = cpuNone
#proc nimCPU(): cstring{.importc, noconv.}
#proc nimOS(): cstring{.importc, noconv.}
#hostCPU = nameToCPU($nimCPU())
#hostOS = nameToOS($nimOS())
hostCPU = nameToCPU(system.hostCPU)
hostOS = nameToOS(system.hostOS)