Commit b0ea67ed authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 8cf41831
......@@ -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;
......
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