summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-06 09:18:58 +0800
committerGitHub <[email protected]>2023-03-06 09:18:58 +0800
commit8bb23ca24aebe4c2dde25183a4eee7cda76e3438 (patch)
tree245c23d3a0a946bd346da6ba088bf81ba941b13f /xmake/modules
parentd13d228fea199fe566aebf891bd26b627e547bb3 (diff)
parentcd25c0d22f73ef7ca2cdf8ac61df828523d5078d (diff)
Merge pull request #3435 from xmake-io/flags
improve has_flags
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 0d33decb4..f6dd6f55b 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -74,7 +74,7 @@ function load(self)
-- we need check it for clang/gcc with window target
-- @see https://github.com/xmake-io/xmake/issues/1392
--
- if not self:is_plat("windows", "mingw") and self:has_flags("-fPIC", "cxflags") then
+ if not self:is_plat("windows", "mingw") and self:has_flags("-fPIC") then
self:add("shflags", "-fPIC")
self:add("shared.cxflags", "-fPIC")
end