From 9fb791e9fad6c63fc1dac49f4d05ae63b8a3db9b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Jan 2016 11:55:15 +0200 Subject: Rename build directory/namespace to build2 --- build2/cxx/utility.cxx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 build2/cxx/utility.cxx (limited to 'build2/cxx/utility.cxx') diff --git a/build2/cxx/utility.cxx b/build2/cxx/utility.cxx new file mode 100644 index 0000000..fead1b4 --- /dev/null +++ b/build2/cxx/utility.cxx @@ -0,0 +1,29 @@ +// file : build2/cxx/utility.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#include + +#include + +using namespace std; + +namespace build2 +{ + namespace cxx + { + void + append_lib_options (cstrings& args, target& l, const char* var) + { + using namespace bin; + + for (target* t: l.prerequisite_targets) + { + if (t->is_a () || t->is_a () || t->is_a ()) + append_lib_options (args, *t, var); + } + + append_options (args, l, var); + } + } +} -- cgit v1.1