summaryrefslogtreecommitdiff
path: root/src/libctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-10-02 21:20:40 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2024-10-02 22:02:51 +0200
commit0d13088ab99cf7d981932451d65034595949ebf8 (patch)
treec3e89b948afe2ac3191833d94c971a4456ccc1a1 /src/libctor.cc
parenta38c6682e4fb1f45aa1f37d10c2480aa517ea3bc (diff)
Ensure the initial task order is preserved. Fixes bad ordering during linking.
Diffstat (limited to 'src/libctor.cc')
-rw-r--r--src/libctor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libctor.cc b/src/libctor.cc
index 21792e1..3eb6c6f 100644
--- a/src/libctor.cc
+++ b/src/libctor.cc
@@ -15,7 +15,6 @@
#include <deque>
#include <fstream>
#include <cstdlib>
-#include <set>
#include <getoptpp/getoptpp.hpp>
@@ -185,17 +184,18 @@ Options:
if(list_files)
{
no_default_build = true;
- std::set<std::string> files;
+ std::vector<std::string> files;
for(std::size_t i = 0; i < numConfigFiles; ++i)
{
- files.insert(configFiles[i].file);
+ files.push_back(configFiles[i].file);
}
for(std::size_t i = 0; i < numExternalConfigFiles; ++i)
{
- files.insert(externalConfigFiles[i].file);
+ files.push_back(externalConfigFiles[i].file);
}
+ std::sort(files.begin(), files.end());
for(const auto& file : files)
{
std::cout << file << "\n";