From d8260f9ef9224739a30d50a419ca8e86eb21976d Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 8 Oct 2022 00:31:45 +0800 Subject: improve gcc/clang --- xmake/modules/core/tools/fpc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/modules/core/tools/fpc.lua') diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua index 57af7a45b..a141238de 100644 --- a/xmake/modules/core/tools/fpc.lua +++ b/xmake/modules/core/tools/fpc.lua @@ -26,7 +26,7 @@ import("core.language.language") -- init it function init(self) - if not is_plat("windows", "mingw") then + if not self:is_plat("windows", "mingw") then self:add("shared.pcflags", "-Cg") end end @@ -58,7 +58,7 @@ end -- make the symbol flag function nf_symbol(self, level) if level == "debug" and self:kind() == "pc" then - if self:plat() == "windows" then + if self:is_plat("windows") then return {"-gw3", "-WN"} else return "-gw3" -- cgit v1.3.1