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

winegcc: Pass only raw compiler and linker arguments in forward mode.

Fixes use case like: CC=winegcc -b i686-w64-mingw32 $CC --version Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c84e416d
......@@ -1462,13 +1462,10 @@ static void build(struct options* opts)
static void forward(int argc, char **argv, struct options* opts)
{
strarray* args = strarray_alloc();
int j;
strarray_addall(args, get_translator(opts));
for( j = 1; j < argc; j++ )
strarray_add(args, argv[j]);
strarray_addall(args, opts->compiler_args);
strarray_addall(args, opts->linker_args);
spawn(opts->prefix, args, 0);
strarray_free (args);
}
......
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