aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx3
1 files changed, 3 insertions, 0 deletions
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<names> ();
+ if (export_value_.empty ())
+ fail (l) << "empty value in export";
+
if (tt == type::newline)
next (t, tt);
else if (tt != type::eos)