summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-06 19:58:48 +0200
committerAraq <rumpf_a@web.de>2018-08-08 09:33:37 +0200
commita377c5cce4d1e4e70e9cdcaf9ad589e2016b6677 (patch)
treed35924533486674266409c5697a91a82c7571706
parentc3523297143d730b1714f4987b5622d31c5f0c07 (diff)
downloadNim-a377c5cce4d1e4e70e9cdcaf9ad589e2016b6677.tar.gz
introduce the --define 'osx' as an alias for 'macosx'
-rw-r--r--compiler/options.nim1
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