aboutsummaryrefslogtreecommitdiff
path: root/bundle.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-20 10:36:45 +0100
committerMartin Ridgers <[email protected]>2022-01-20 10:36:45 +0100
commitbf8ccc5518180fe22fdef125d95e8f20027ccb7b (patch)
treec732604831672da1d51fd00eeb403274382f8a38 /bundle.lua
parent'xmake bundle' for Mac (diff)
downloadzen-bf8ccc5518180fe22fdef125d95e8f20027ccb7b.tar.xz
zen-bf8ccc5518180fe22fdef125d95e8f20027ccb7b.zip
Raise an error if a given vcpkg tool is not found
Diffstat (limited to 'bundle.lua')
-rw-r--r--bundle.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundle.lua b/bundle.lua
index 50417f76d..62a0597e9 100644
--- a/bundle.lua
+++ b/bundle.lua
@@ -82,6 +82,10 @@ local function _find_vcpkg_binary(triple, port, binary)
end
bin_path = root_dir.."/installed/"..triple.."/tools/"..port.."/"..binary
+ if not os.isfile(bin_path) then
+ raise("Unable to locate vcpkg tool "..bin_path)
+ end
+
return bin_path
end