mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 02:44:48 +03:00
temporary
This commit is contained in:
parent
938c251a5c
commit
66e0be4098
10
main.cc
10
main.cc
@ -427,11 +427,15 @@ int main(int argc, char **argv) {
|
||||
|
||||
for_each(files, [](ObjectFile *file) { file->register_defined_symbols(); });
|
||||
|
||||
std::vector<ObjectFile *> objs;
|
||||
for (ObjectFile *file : files)
|
||||
if (!file->is_in_archive())
|
||||
objs.push_back(file);
|
||||
|
||||
tbb::parallel_do(
|
||||
files.begin(), files.end(),
|
||||
objs.begin(), objs.end(),
|
||||
[&](ObjectFile *file, tbb::parallel_do_feeder<ObjectFile *>& feeder) {
|
||||
if (!file->is_in_archive())
|
||||
file->register_undefined_symbols(feeder);
|
||||
file->register_undefined_symbols(feeder);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user