Skip to content

Commit b358dad

Browse files
committed
[ELF] Re-initialize InputFile::isInGroup so that elf::link can be called more than once
1 parent c7a0b26 commit b358dad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/ELF/Driver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,7 @@ void LinkerDriver::createFiles(opt::InputArgList &args) {
13061306
std::vector<std::tuple<bool, bool, bool>> stack;
13071307

13081308
// Iterate over argv to process input files and positional arguments.
1309+
InputFile::isInGroup = false;
13091310
for (auto *arg : args) {
13101311
switch (arg->getOption().getID()) {
13111312
case OPT_library:

0 commit comments

Comments
 (0)