From db961e1e9fba6e0c439f69ac8342ef887d9d19a6 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 20 Jun 2023 17:54:07 +0200 Subject: 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. --- 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 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; } -- cgit v1.2.3