Module: wine Branch: master Commit: 81d1d8e355650d4d7d69efe38423075265a9d07b URL: http://source.winehq.org/git/wine.git/?a=commit;h=81d1d8e355650d4d7d69efe384...
Author: Ken Thomases ken@codeweavers.com Date: Fri May 1 22:59:25 2009 -0500
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.)
---
tools/winegcc/winegcc.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 9588bbf..8a3159b 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -841,6 +841,9 @@ static int is_linker_arg(const char* arg) case 'X': if (strcmp("-Xlinker", arg) == 0) return 1; break; + case 'a': + if (strcmp("-arch", arg) == 0) return 1; + break; }
for (j = 0; j < sizeof(link_switches)/sizeof(link_switches[0]); j++) @@ -988,6 +991,8 @@ int main(int argc, char **argv) case 'a': if (strcmp("-aux-info", argv[i]) == 0) next_is_arg = 1; + if (strcmp("-arch", argv[i]) == 0) + next_is_arg = 1; break; case 'X': if (strcmp("-Xlinker", argv[i]) == 0)