summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/link/has_flags.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools/link/has_flags.lua')
-rw-r--r--xmake/modules/detect/tools/link/has_flags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/link/has_flags.lua b/xmake/modules/detect/tools/link/has_flags.lua
index ba6b8e2b8..74eae3554 100644
--- a/xmake/modules/detect/tools/link/has_flags.lua
+++ b/xmake/modules/detect/tools/link/has_flags.lua
@@ -115,7 +115,7 @@ end
function _ignore_flags(flags)
local results = {}
for _, flag in ipairs(flags) do
- if not flag:find("[%-/]def:.+%.def") then
+ if not flag:find("[%-/]def:.+%.def") and not flag:find("[%-/]export:") then
table.insert(results, flag)
end
end