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: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-05-20 17:34:53 +02:00 committed by Alexandre Julliard
parent c84e416d23
commit e9de7761cd
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}