Fix -pthread in a different way
This commit is contained in:
parent
1b1b270f1e
commit
3b27b3b1d1
1 changed files with 3 additions and 1 deletions
4
tcc.c
4
tcc.c
|
@ -298,8 +298,10 @@ redo:
|
||||||
if (n > 1 && s->outfile)
|
if (n > 1 && s->outfile)
|
||||||
tcc_error("cannot specify output file with -c many files");
|
tcc_error("cannot specify output file with -c many files");
|
||||||
} else {
|
} else {
|
||||||
if (s->option_pthread)
|
if (s->option_pthread) {
|
||||||
tcc_set_options(s, "-lpthread");
|
tcc_set_options(s, "-lpthread");
|
||||||
|
n = s->nb_files;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->do_bench)
|
if (s->do_bench)
|
||||||
|
|
Loading…
Reference in a new issue