From c76736eb1dde2fe5a8ae344dca2b018c79bdc218 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 30 Aug 2018 10:03:30 +0200 Subject: Handle missing export directive in export stub If none were executed, then we assume the requested target is not exported. --- build2/parser.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index 6d025a6..1dd49b6 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1509,6 +1509,9 @@ namespace build2 export_value_ = move (rhs).as (); + if (export_value_.empty ()) + fail (l) << "empty value in export"; + if (tt == type::newline) next (t, tt); else if (tt != type::eos) -- cgit v1.1