parent
0b4b9b3ad0
commit
56068101f6
2 changed files with 11 additions and 13 deletions
|
|
@ -573,10 +573,8 @@ proc isDefined*(conf: ConfigRef; symbol: string): bool =
|
|||
of "sunos": result = conf.target.targetOS == osSolaris
|
||||
of "nintendoswitch":
|
||||
result = conf.target.targetOS == osNintendoSwitch
|
||||
of "freertos":
|
||||
of "freertos", "lwip":
|
||||
result = conf.target.targetOS == osFreeRTOS
|
||||
of "lwip":
|
||||
result = conf.target.targetOS in {osFreeRTOS}
|
||||
of "littleendian": result = CPU[conf.target.targetCPU].endian == platform.littleEndian
|
||||
of "bigendian": result = CPU[conf.target.targetCPU].endian == platform.bigEndian
|
||||
of "cpu8": result = CPU[conf.target.targetCPU].bit == 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue