forked from Mirrors/wine-wine
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
parent
c84e416d23
commit
e9de7761cd
|
@ -1462,13 +1462,10 @@ static void build(struct options* opts)
|
||||||
static void forward(int argc, char **argv, struct options* opts)
|
static void forward(int argc, char **argv, struct options* opts)
|
||||||
{
|
{
|
||||||
strarray* args = strarray_alloc();
|
strarray* args = strarray_alloc();
|
||||||
int j;
|
|
||||||
|
|
||||||
strarray_addall(args, get_translator(opts));
|
strarray_addall(args, get_translator(opts));
|
||||||
|
strarray_addall(args, opts->compiler_args);
|
||||||
for( j = 1; j < argc; j++ )
|
strarray_addall(args, opts->linker_args);
|
||||||
strarray_add(args, argv[j]);
|
|
||||||
|
|
||||||
spawn(opts->prefix, args, 0);
|
spawn(opts->prefix, args, 0);
|
||||||
strarray_free (args);
|
strarray_free (args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue