summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-07-22 15:21:28 +0200
committerArthur LAURENT <[email protected]>2024-07-22 15:21:28 +0200
commitbbe7745ad8ccde3f39f1c1e468fd2d96ca7cb3f5 (patch)
tree7b888ca80f88c9fdc26954066247f677cfd32c7e /xmake/rules/c++/modules/modules_support
parent45852e6ffcd3f043d961574e72f40d287a2898ab (diff)
strip -fmodule-mapper for GCC module reusage flag compatibility detection
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua b/xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua
index 2253c9866..25e047f8a 100644
--- a/xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua
@@ -77,6 +77,7 @@ function strip_flags(target, flags)
"-w",
"-cxx-isystem",
"-Q",
+ "-fmodule-mapper",
}
if not target:policy("build.c++.modules.tryreuse.discriminate_on_defines") then
table.join2(strippable_flags, {"-D", "-U"})