diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-08-06 19:58:48 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-08 09:33:37 +0200 |
commit | a377c5cce4d1e4e70e9cdcaf9ad589e2016b6677 (patch) | |
tree | d35924533486674266409c5697a91a82c7571706 | |
parent | c3523297143d730b1714f4987b5622d31c5f0c07 (diff) | |
download | Nim-a377c5cce4d1e4e70e9cdcaf9ad589e2016b6677.tar.gz |
introduce the --define 'osx' as an alias for 'macosx'
-rw-r--r-- | compiler/options.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index 598adf27d..7d7327d28 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -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 |