darwin name in target tripple may contain version
authorMatthias Braun <matze@braunis.de>
Tue, 14 Feb 2012 10:22:05 +0000 (11:22 +0100)
committerMatthias Braun <matze@braunis.de>
Tue, 14 Feb 2012 10:22:05 +0000 (11:22 +0100)
driver/firm_machine.c

index 7c016fb..593e485 100644 (file)
@@ -34,7 +34,7 @@ static bool setup_os_support(const char *os)
        if (strstr(os, "linux") != NULL || strstr(os, "bsd") != NULL
                        || streq(os, "solaris")) {
                set_be_option("ia32-gasmode=elf");
-       } else if (streq(os, "darwin")) {
+       } else if (strstart(os, "darwin")) {
                set_be_option("ia32-gasmode=macho");
                set_be_option("ia32-stackalign=4");
                set_be_option("pic=true");