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
parent c352329714
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