diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-08-17 13:50:19 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-08-19 17:22:43 +0200 |
commit | 36a6bda7f2ed0eeaae269261e41af72d7469586b (patch) | |
tree | 55ae89bc48baa1281a0459e3a942f43efe098273 /src/buildtool/main/main.cpp | |
parent | b21058771a56fd794b0ec4d420e0f721606f884b (diff) | |
download | justbuild-36a6bda7f2ed0eeaae269261e41af72d7469586b.tar.gz |
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.
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |