got rid of platdef.c; compiler now always does linking step
This commit is contained in:
parent
8ce705f686
commit
f56816def0
12 changed files with 39 additions and 51 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue