summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/fpc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-04 21:23:01 +0800
committerruki <[email protected]>2021-09-04 21:23:01 +0800
commitd65446740b572217af9a96dd908ba8397752a65a (patch)
tree46881edf898502bb21005f96a3c107f0c4ab1d5b /xmake/modules/core/tools/fpc.lua
parent21c6d218d8a8f30824e1c2dc5bb783b210143e02 (diff)
add fpic to pascal
Diffstat (limited to 'xmake/modules/core/tools/fpc.lua')
-rw-r--r--xmake/modules/core/tools/fpc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua
index 378c4175a..c22386fbb 100644
--- a/xmake/modules/core/tools/fpc.lua
+++ b/xmake/modules/core/tools/fpc.lua
@@ -26,6 +26,9 @@ import("core.project.project")
-- init it
function init(self)
self:set("pcarflags", "-Xt")
+ if not is_plat("windows", "mingw") then
+ self:add("shared.pcflags", "-Cg")
+ end
end
-- make the optimize flag