diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-06-20 17:54:07 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-06-26 17:57:29 +0200 |
commit | db961e1e9fba6e0c439f69ac8342ef887d9d19a6 (patch) | |
tree | fdca64d26fed112afe20e59dcc42417ce3f0143e /src/buildtool/main/main.cpp | |
parent | 01a0ed081f8eb6f7c41cd1052b146813fb94f699 (diff) | |
download | justbuild-db961e1e9fba6e0c439f69ac8342ef887d9d19a6.tar.gz |
Add non-upwards symlinks in the rule language...
via a 'SYMLINK' constructor function. This works similarly to the
'FILE' construct, but the name given must point to a non-upwards
symlink and a symlink artifact is being generated from it.
Also updates the relevant tests.
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 288101f5..5589b0e0 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -1238,6 +1238,9 @@ auto DetermineNonExplicitTarget( case Base::ReferenceType::kGlob: std::cout << id.ToString() << " is a glob." << std::endl; return std::nullopt; + case Base::ReferenceType::kSymlink: + std::cout << id.ToString() << " is a symlink." << std::endl; + return std::nullopt; case Base::ReferenceType::kTarget: return id; } |