From 36a6bda7f2ed0eeaae269261e41af72d7469586b Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 17 Aug 2022 13:50:19 +0200 Subject: Add glob reference to source files Like file or tree references, globs are restricted to the current module; in fact, by the way we evaluate them, even to the top-level directory of that module: a glob is a target having as artifacts and runfiles those entries of the top-level directory of the specified module that match the given pattern. --- src/buildtool/main/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 30035819..c904f689 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -949,6 +949,9 @@ auto DetermineNonExplicitTarget( case Base::ReferenceType::kTree: std::cout << id.ToString() << " is a tree." << std::endl; return std::nullopt; + case Base::ReferenceType::kGlob: + std::cout << id.ToString() << " is a glob." << std::endl; + return std::nullopt; case Base::ReferenceType::kTarget: return id; } -- cgit v1.2.3