diff options
| author | Arthur LAURENT <[email protected]> | 2025-09-25 17:51:15 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-09-25 17:51:15 +0200 |
| commit | bcc3c5617baad62989a45a44aa2890fda5eba0f3 (patch) | |
| tree | a1a7afb64d7eb4798eaba2932dc3342e0564cf16 /xmake/rules/c++/modules/support.lua | |
| parent | f270a7cf4823d723299bef4999493e25b7ac4f38 (diff) | |
nfc(C++ modules) apply PR suggestion
Diffstat (limited to 'xmake/rules/c++/modules/support.lua')
| -rw-r--r-- | xmake/rules/c++/modules/support.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xmake/rules/c++/modules/support.lua b/xmake/rules/c++/modules/support.lua index cce8272c8..8d1c39531 100644 --- a/xmake/rules/c++/modules/support.lua +++ b/xmake/rules/c++/modules/support.lua @@ -78,9 +78,10 @@ function get_cpplibrary_name(target) elseif target:has_runtime("MD", "MT", "MDd", "MTd") then return "msstl" end + -- if no specified runtime, fallback on native platform C++ library if target:is_plat("macosx", "iphoneos", "appletvos") then return "c++" - elseif target:is_plat("linux") then + elseif target:is_plat("linux") or target:is_plat("mingw") then return "stdc++" elseif target:is_plat("windows") then return "msstl" @@ -259,10 +260,7 @@ function can_be_culled(target, sourcefile) end end if can_cull then - can_cull = false - if is_stdmodule or (fileconfig and fileconfig.external) then - can_cull = true - end + can_cull = is_stdmodule or (fileconfig and fileconfig.external) end return can_cull and not public end |
