diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-08-22 16:00:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-08-22 16:00:57 +0200 |
commit | db1de61af298626c75431833aa620dafda2b35f6 (patch) | |
tree | 1b9740e36b859a3dee099f3038726cd8be098cd5 | |
parent | b3d1131995df19ad7701410e459744e27cac4ab4 (diff) |
Rework code to sidestep Clang 3.8 on FreeBSD 11.0 mis-compilation
-rw-r--r-- | build2/cc/link-rule.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx index 3c2be53..0bfef09 100644 --- a/build2/cc/link-rule.cxx +++ b/build2/cc/link-rule.cxx @@ -790,8 +790,7 @@ namespace build2 if (!pt->has_prerequisites ()) { - prerequisites ps; - ps.push_back (p.as_prerequisite ()); // Source. + prerequisites ps {p.as_prerequisite ()}; // Source. // Add our lib*{} (see the export.* machinery for details) and // bmi*{} (both original and chained; see module search logic) |