Commit 81d1d8e3 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winegcc: Recognize '-arch <arch>' as a compiler and linker option.

The dev tools on Mac OS X takes this option to dictate the output architecture. (Gcc still accepts -m32 and -m64, as well, but "ld" and "as" do not.)
parent ad66aa77
...@@ -841,6 +841,9 @@ static int is_linker_arg(const char* arg) ...@@ -841,6 +841,9 @@ static int is_linker_arg(const char* arg)
case 'X': case 'X':
if (strcmp("-Xlinker", arg) == 0) return 1; if (strcmp("-Xlinker", arg) == 0) return 1;
break; break;
case 'a':
if (strcmp("-arch", arg) == 0) return 1;
break;
} }
for (j = 0; j < sizeof(link_switches)/sizeof(link_switches[0]); j++) for (j = 0; j < sizeof(link_switches)/sizeof(link_switches[0]); j++)
...@@ -988,6 +991,8 @@ int main(int argc, char **argv) ...@@ -988,6 +991,8 @@ int main(int argc, char **argv)
case 'a': case 'a':
if (strcmp("-aux-info", argv[i]) == 0) if (strcmp("-aux-info", argv[i]) == 0)
next_is_arg = 1; next_is_arg = 1;
if (strcmp("-arch", argv[i]) == 0)
next_is_arg = 1;
break; break;
case 'X': case 'X':
if (strcmp("-Xlinker", argv[i]) == 0) if (strcmp("-Xlinker", argv[i]) == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment