introduce the --define 'osx' as an alias for 'macosx'

This commit is contained in:
Andreas Rumpf 2018-08-06 19:58:48 +02:00 • committed by Araq
commit a377c5cce4

View file

@ -354,6 +354,7 @@ proc isDefined*(conf: ConfigRef; symbol: string): bool =
of "msdos": result = conf.target.targetOS == osDos
of "mswindows", "win32": result = conf.target.targetOS == osWindows
of "macintosh": result = conf.target.targetOS in {osMacos, osMacosx}
of "osx": result = conf.target.targetOS == osMacosx
of "sunos": result = conf.target.targetOS == osSolaris
of "nintendoswitch":
result = conf.target.targetOS == osNintendoSwitch