aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-03-02 11:18:13 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-03-04 13:00:06 +0100
commiteabc35340dc0fd63d70058f93c94674bc7782c19 (patch)
tree1430f5b84cb71660355ce64a5951aacdc94f4206 /mesonbuild
parent8fad06e8c83da1c197bad5970119f33e37258a5d (diff)
downloadmeson-eabc35340dc0fd63d70058f93c94674bc7782c19.zip
meson-eabc35340dc0fd63d70058f93c94674bc7782c19.tar.gz
meson-eabc35340dc0fd63d70058f93c94674bc7782c19.tar.bz2
rewriter: Enforce an empty project ID string
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/rewriter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py
index 5822301..b344ce6 100644
--- a/mesonbuild/rewriter.py
+++ b/mesonbuild/rewriter.py
@@ -479,6 +479,8 @@ class Rewriter:
node = None
arg_node = None
if cmd['function'] == 'project':
+ if cmd['id'] != '':
+ mlog.error('The ID for the function type project must be an empty string --> skipping')
node = self.interpreter.project_node
arg_node = node.args
elif cmd['function'] == 'target':