From e2a1394ae8f528078bc34e10b4b0bd538e67b23a Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Thu, 2 Oct 2008 03:38:29 +0200 Subject: [PATCH] Added FreeBSD support to the -t switch --- dmd/mars.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmd/mars.c b/dmd/mars.c index c4585b2326..dbbd5345d7 100644 --- a/dmd/mars.c +++ b/dmd/mars.c @@ -188,7 +188,7 @@ Codegen control:\n\ -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 @@ int main(int argc, char *argv[]) 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); }