summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-05-28 11:00:08 +0800
committerxq114 <[email protected]>2022-05-28 11:00:08 +0800
commitd5b0b98c2670e5deb0f685ded67f848377fd4a76 (patch)
tree7c0c1a125e267027e27e271274f4bc3cc13e0b1b
parent7d5a9b498a47c47554daee8839e4f9caac1dcc64 (diff)
improve package.tools.meson
-rw-r--r--xmake/modules/package/tools/meson.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 0ee1839b6..f419086d5 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -56,7 +56,7 @@ function _get_configs(package, configs, opt)
table.insert(configs, "--libdir=lib")
-- set build type
- table.insert(configs, "--buildtype=" .. (package:debug() and "debug" or "release"))
+ table.insert(configs, "-Dbuildtype=" .. (package:debug() and "debug" or "release"))
-- add -fpic
if package:is_plat("linux") and package:config("pic") then