got rid of platdef.c generation
This commit is contained in:
parent
10ab814fba
commit
8ce705f686
27 changed files with 184 additions and 173 deletions
|
|
@ -203,10 +203,13 @@ proc NameToCPU(name: string): TSystemCPU =
|
|||
return i
|
||||
result = cpuNone
|
||||
|
||||
proc nimCPU(): cstring{.importc, noconv.}
|
||||
proc nimOS(): cstring{.importc, noconv.}
|
||||
#proc nimCPU(): cstring{.importc, noconv.}
|
||||
#proc nimOS(): cstring{.importc, noconv.}
|
||||
|
||||
#hostCPU = nameToCPU($nimCPU())
|
||||
#hostOS = nameToOS($nimOS())
|
||||
hostCPU = nameToCPU(system.hostCPU)
|
||||
hostOS = nameToOS(system.hostOS)
|
||||
|
||||
hostCPU = nameToCPU($(nimCPU()))
|
||||
hostOS = nameToOS($(nimOS()))
|
||||
setTarget(hostOS, hostCPU) # assume no cross-compiling
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue