aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-31 12:22:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-31 12:22:46 +0200
commit89a2881d1128fd799479aca1883687553a359395 (patch)
tree8cd310eb41ac60bdcd05ba41c293bed6a44a94e8 /build2/algorithm.cxx
parent3d8f2b3779ae32a16627a0f09f1798224cdaf68f (diff)
Compile first source file, not last
Some source files may include other files of the same type which can get injected at the end.
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index 6b28232..8dc5621 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -494,7 +494,7 @@ namespace build2
}
}
- if (pt->is_a (tt))
+ if (r == nullptr && pt->is_a (tt))
r = pt;
}