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:
parent
8cf418314c
commit
b0ea67ed46
|
@ -1533,6 +1533,9 @@ int main(int argc, char **argv)
|
||||||
if (strcmp("-framework", argv[i]) == 0)
|
if (strcmp("-framework", argv[i]) == 0)
|
||||||
next_is_arg = 1;
|
next_is_arg = 1;
|
||||||
break;
|
break;
|
||||||
|
case 't':
|
||||||
|
next_is_arg = strcmp("-target", argv[i]) == 0;
|
||||||
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
next_is_arg = (strcmp("--param", argv[i]) == 0 ||
|
next_is_arg = (strcmp("--param", argv[i]) == 0 ||
|
||||||
strcmp("--sysroot", argv[i]) == 0 ||
|
strcmp("--sysroot", argv[i]) == 0 ||
|
||||||
|
@ -1699,6 +1702,13 @@ int main(int argc, char **argv)
|
||||||
raw_linker_arg = 0;
|
raw_linker_arg = 0;
|
||||||
}
|
}
|
||||||
break;
|
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':
|
case 'v':
|
||||||
if (argv[i][2] == 0) verbose++;
|
if (argv[i][2] == 0) verbose++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue