--os:ios needs to imply defined(macosx) [backport] (#12585)

This commit is contained in:
Andreas Rumpf
2019-11-04 13:05:03 +01:00
committed by GitHub
parent bdc2bcc36c
commit 62fc3db9d7

View File

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