aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-16 21:06:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-17 12:33:14 +0300
commit3712363ddf1be71b38321d2dde57d88f01a28afb (patch)
tree11dcf6ce5ee9bc73a2e1cf9c3324f82b9ed8a96f
parentf3bb99ce65da4a97ceb422eb36a34dab1130f73f (diff)
Add '--std c++11' CLI option in buildfiles
-rw-r--r--build2/buildfile5
-rw-r--r--libbuild2/buildfile2
2 files changed, 4 insertions, 3 deletions
diff --git a/build2/buildfile b/build2/buildfile
index 57c2561..d3b937f 100644
--- a/build2/buildfile
+++ b/build2/buildfile
@@ -86,8 +86,9 @@ if $cli.configured
{
cli.cxx{b-options}: cli{b}
- cli.options += -I $src_root --include-with-brackets --include-prefix build2 \
---guard-prefix BUILD2 --cxx-prologue "#include <build2/types-parsers.hxx>" \
+ cli.options += --std c++11 -I $src_root --include-with-brackets \
+--include-prefix build2 --guard-prefix BUILD2 \
+--cxx-prologue "#include <build2/types-parsers.hxx>" \
--cli-namespace build2::cl --generate-file-scanner --keep-separator \
--generate-parse --generate-specifier
diff --git a/libbuild2/buildfile b/libbuild2/buildfile
index 377ea30..6539a01 100644
--- a/libbuild2/buildfile
+++ b/libbuild2/buildfile
@@ -97,7 +97,7 @@ test/script/
{
cli.cxx{builtin-options}: cli{builtin}
- cli.options += -I $src_root --include-with-brackets \
+ cli.options += --std c++11 -I $src_root --include-with-brackets \
--include-prefix libbuild2/test/script --guard-prefix LIBBUILD2_TEST_SCRIPT \
--cli-namespace build2::test::script::cli --generate-vector-scanner \
--generate-specifier --suppress-usage