aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-17 13:25:37 +0100
committerMartin Ridgers <[email protected]>2021-11-17 13:25:37 +0100
commitf2029f292341d91cc14f747befd19cf557d3c7bf (patch)
tree7a6785b39ec60a2712ea335826978e14d1df14ff /xmake.lua
parentTurned USE_SENTRY and ZEN_MIMALLOC into xmake config options (diff)
downloadzen-f2029f292341d91cc14f747befd19cf557d3c7bf.tar.xz
zen-f2029f292341d91cc14f747befd19cf557d3c7bf.zip
Moved compute xmake config option out of the is-windows block
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake.lua b/xmake.lua
index d7c46d684..88b6b8bae 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -94,15 +94,15 @@ if is_os("windows") then
set_description("Enable http.sys server")
add_defines("ZEN_WITH_HTTPSYS")
option_end()
-
- option("compute")
- set_default(true)
- set_showmenu(true)
- set_description("Enable compute services endpoint")
- add_defines("ZEN_WITH_COMPUTE_SERVICES")
- option_end()
end
+option("compute")
+ set_default(is_os("windows"))
+ set_showmenu(true)
+ set_description("Enable compute services endpoint")
+ add_defines("ZEN_WITH_COMPUTE_SERVICES")
+option_end()
+
set_warnings("allextra", "error")
set_languages("cxx20")