From 567fa9050bc8cec0c527e0cc28eb30afd179dfd6 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sat, 1 Nov 2025 22:51:47 +0100 Subject: fix(modules) strip sanitizers flags for module reusage --- xmake/rules/c++/modules/clang/support.lua | 1 + xmake/rules/c++/modules/gcc/support.lua | 3 ++- xmake/rules/c++/modules/msvc/support.lua | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'xmake/rules/c++/modules') 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", -- cgit v1.3.1