From 304943e79b6e2c67d2c010f053d8cd2a42460ddd Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 15 May 2024 22:35:57 +0800 Subject: improve gn #5100 --- xmake/modules/package/tools/gn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua index 9cef0bf7f..fe6566ab4 100644 --- a/xmake/modules/package/tools/gn.lua +++ b/xmake/modules/package/tools/gn.lua @@ -66,7 +66,9 @@ function _get_configs(package, configs, opt) elseif package:is_arch("arm.*") then configs.target_cpu = "arm" end - configs.is_debug = package:is_debug() and "true" or "false" + if configs.is_debug == nil then + configs.is_debug = package:is_debug() and true or false + end return configs end -- cgit v1.3.1