From 2dd1f9fa5a7427096b74aa85258ec2feeb93c104 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Jun 2023 12:22:26 +0200 Subject: Diagnose null include, operation-specific variable values While assigning null directly is unlikely, it's fairly easy via a variable expansion. Real-world example: ./: exe{tensor}: include = $config.Eigen.unsupported --- libbuild2/target.hxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libbuild2/target.hxx') diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index d01e8b7..d4ad780 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -1472,9 +1472,7 @@ namespace build2 } include_type - include (action, const target&, - const prerequisite_member&, - lookup* = nullptr); + include (action, const target&, const prerequisite_member&, lookup* = nullptr); // A "range" that presents a sequence of prerequisites (e.g., from // group_prerequisites()) as a sequence of prerequisite_member's. For each -- cgit v1.1