# HG changeset patch # User Tomas Lindquist Olsen # Date 1222911509 -7200 # Node ID 94b01f15814f8052e396aa7828c4834f8d7e550e # Parent 29dc68c949b08d445babf456e98c95a8502ab9ea Added FreeBSD support to the -t switch diff -r 29dc68c949b0 -r 94b01f15814f dmd/mars.c --- 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 emit code specific to being one of:\n\ x86 x86-64 ppc32 ppc64\n\ -t emit code specific to being one of:\n\ - Linux, Windows, MacOSX\n\ + Linux, Windows, MacOSX, FreeBSD\n\ \n\ -O optimize, same as -O2\n\ -O optimize at level (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); }