winegcc: Treat -target argument as an alias to --target for clang compatibility.

clang uses -target for the same thing as we do.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-02-21 13:52:20 +01:00 committed by Alexandre Julliard
parent 8cf418314c
commit b0ea67ed46
1 changed files with 10 additions and 0 deletions

View File

@ -1533,6 +1533,9 @@ int main(int argc, char **argv)
if (strcmp("-framework", argv[i]) == 0)
next_is_arg = 1;
break;
case 't':
next_is_arg = strcmp("-target", argv[i]) == 0;
break;
case '-':
next_is_arg = (strcmp("--param", argv[i]) == 0 ||
strcmp("--sysroot", argv[i]) == 0 ||
@ -1699,6 +1702,13 @@ int main(int argc, char **argv)
raw_linker_arg = 0;
}
break;
case 't':
if (is_option( argv, i, "-target", &option_arg ))
{
parse_target_option( &opts, option_arg );
raw_compiler_arg = raw_linker_arg = 0;
}
break;
case 'v':
if (argv[i][2] == 0) verbose++;
break;