summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-11-01 22:51:47 +0100
committerArthur LAURENT <[email protected]>2025-11-01 22:51:47 +0100
commit567fa9050bc8cec0c527e0cc28eb30afd179dfd6 (patch)
tree70c255a3f791d9978039b1245d672867dc3ab8fa /xmake/rules/c++/modules
parentb3a2dba93a185f205dbd18a154e42da72fdd4881 (diff)
fix(modules) strip sanitizers flags for module reusage
Diffstat (limited to 'xmake/rules/c++/modules')
-rw-r--r--xmake/rules/c++/modules/clang/support.lua1
-rw-r--r--xmake/rules/c++/modules/gcc/support.lua3
-rw-r--r--xmake/rules/c++/modules/msvc/support.lua1
3 files changed, 4 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/clang/support.lua b/xmake/rules/c++/modules/clang/support.lua
index faebd5213..9dec0a1e7 100644
--- a/xmake/rules/c++/modules/clang/support.lua
+++ b/xmake/rules/c++/modules/clang/support.lua
@@ -131,6 +131,7 @@ function strippeable_flags()
"Q",
"fmodule-file",
"fPIC",
+ "fsanitize"
}
local splitted_strippeable_flags = {
"I",
diff --git a/xmake/rules/c++/modules/gcc/support.lua b/xmake/rules/c++/modules/gcc/support.lua
index 2f7ec8bc7..df0478c46 100644
--- a/xmake/rules/c++/modules/gcc/support.lua
+++ b/xmake/rules/c++/modules/gcc/support.lua
@@ -90,7 +90,8 @@ function strippeable_flags()
"fmodule-mapper",
"fmodules-ts",
"fmodules",
- "fPIC"
+ "fPIC",
+ "fsanitize"
}
local splitted_strippeable_flags = {
"I",
diff --git a/xmake/rules/c++/modules/msvc/support.lua b/xmake/rules/c++/modules/msvc/support.lua
index b83cad213..ab2f35ab5 100644
--- a/xmake/rules/c++/modules/msvc/support.lua
+++ b/xmake/rules/c++/modules/msvc/support.lua
@@ -91,6 +91,7 @@ function strippeable_flags()
"analyze",
"?",
"external",
+ "fsanitize"
}
local splitted_strippeable_flags = {
"Fo",