aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-10-01 17:12:54 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-10-01 17:12:54 +0000
commit13b6b645897fd2edaa0f09fa48d6fe8dd6287b55 (patch)
tree0c6fc18fa246115402c9fd0030029d9a4ebde82f /src/libcmd/command.cc
parentf4f3203aa7c2fc9225a8ae220db25593066fb397 (diff)
parent4f496150eb4e0012914c11f0a3ff4df2412b1d09 (diff)
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r--src/libcmd/command.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index 0d61e12d0..fd3edfc46 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -203,10 +203,10 @@ void MixProfile::updateProfile(const BuiltPaths & buildables)
for (auto & buildable : buildables) {
std::visit(overloaded {
- [&](BuiltPath::Opaque bo) {
+ [&](const BuiltPath::Opaque & bo) {
result.push_back(bo.path);
},
- [&](BuiltPath::Built bfd) {
+ [&](const BuiltPath::Built & bfd) {
for (auto & output : bfd.outputs) {
result.push_back(output.second);
}