[ELF] Re-initialize InputFile::isInGroup so that elf::link can be called more than once

This commit is contained in:
Fangrui Song 2020-08-14 15:38:05 -07:00
parent c7a0b2684f
commit b358daddea
1 changed files with 1 additions and 0 deletions

View File

@ -1306,6 +1306,7 @@ void LinkerDriver::createFiles(opt::InputArgList &args) {
std::vector<std::tuple<bool, bool, bool>> stack;
// Iterate over argv to process input files and positional arguments.
InputFile::isInGroup = false;
for (auto *arg : args) {
switch (arg->getOption().getID()) {
case OPT_library: