changeset 638:94b01f15814f

Added FreeBSD support to the -t switch
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 02 Oct 2008 03:38:29 +0200
parents 29dc68c949b0
children 8aebdf56c455
files dmd/mars.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/mars.c	Thu Oct 02 03:25:46 2008 +0200
+++ b/dmd/mars.c	Thu Oct 02 03:38:29 2008 +0200
@@ -188,7 +188,7 @@
   -m<arch>       emit code specific to <arch> being one of:\n\
                  x86 x86-64 ppc32 ppc64\n\
   -t<os>         emit code specific to <os> being one of:\n\
-                 Linux, Windows, MacOSX\n\
+                 Linux, Windows, MacOSX, FreeBSD\n\
 \n\
   -O             optimize, same as -O2\n\
   -O<n>          optimize at level <n> (0-5)\n\
@@ -665,6 +665,8 @@
                 global.params.os = OSWindows;
             else if(strcmp(p + 2, "MacOSX") == 0)
                 global.params.os = OSMacOSX;
+            else if(strcmp(p + 2, "FreeBSD") == 0)
+                global.params.os = OSFreeBSD;
             else
                 error("unrecognized target os '%s'", p + 2);
         }