aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-13 09:25:05 +0100
committerMartin Ridgers <[email protected]>2022-01-13 09:25:05 +0100
commit6fa251cfd150e0d287876d4bc0cb9559541ba880 (patch)
treea4ba133e3cfbe7b569784526a9b563916bcb587f /xmake.lua
parentFixed 'xmake test' using the wrong architecture value on non-Windows (diff)
downloadzen-6fa251cfd150e0d287876d4bc0cb9559541ba880.tar.xz
zen-6fa251cfd150e0d287876d4bc0cb9559541ba880.zip
Issue warning if xmake bundle is run on non-Windows
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 616032373..0fd258d1c 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -154,6 +154,10 @@ task("bundle")
import("detect.tools.find_7z")
import("detect.sdks.find_vcpkgdir")
+ if not is_host("windows") then
+ raise("'xmake bundle' not currently supported on this platform")
+ end
+
local zip_cmd = find_7z()
if not zip_cmd then
raise("unable to find zip tool")