summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/trybuild/make.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/action/trybuild/make.lua')
-rw-r--r--xmake/modules/private/action/trybuild/make.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/action/trybuild/make.lua b/xmake/modules/private/action/trybuild/make.lua
index 41a6175a5..01ea217c0 100644
--- a/xmake/modules/private/action/trybuild/make.lua
+++ b/xmake/modules/private/action/trybuild/make.lua
@@ -20,6 +20,7 @@
-- imports
import("core.base.option")
+import("core.project.config")
import("lib.detect.find_file")
-- detect build-system and configuration file
@@ -38,6 +39,7 @@ end
-- do build
function build()
+ assert(is_subhost(config.plat()), "make: %s not supported!", config.plat())
if is_subhost("windows") then
os.vexec("nmake")
else