summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/fpc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-08 00:31:45 +0800
committerruki <[email protected]>2022-10-08 00:31:45 +0800
commitd8260f9ef9224739a30d50a419ca8e86eb21976d (patch)
tree3a0fb2a5d4a4c810eed72a5f9a10c8ba7831c20f /xmake/modules/core/tools/fpc.lua
parent0adcc75463e4b745199cf07fcdbd6d27ac39249e (diff)
improve gcc/clang
Diffstat (limited to 'xmake/modules/core/tools/fpc.lua')
-rw-r--r--xmake/modules/core/tools/fpc.lua4
1 files changed, 2 insertions, 2 deletions
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"