diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-01 15:13:12 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-01 15:13:12 +0100 |
| commit | 3758d42fbe0ed0b98a3022bcbf3217494275a6f3 (patch) | |
| tree | 0fbc7d741dc173f00c497e090d230b984fda6847 /xmake/rules/c++/modules/modules_support/gcc.lua | |
| parent | 9b21e149d3c4966b0e0a79555935a7d4560afed7 (diff) | |
fix cppversion flag cache in gcc.lua
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index 7e5d93f38..e58f875f3 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -517,6 +517,7 @@ function get_cppversionflag(target) local compinst = target:compiler("cxx") local flags = compinst:compflags({target = target}) cppversionflag = table.find_if(flags, function(v) string.startswith(v, "-std=c++") end) or "-std=c++20" + _g.cppversionflag = cppversionflag end return cppversionflag or nil end
\ No newline at end of file |
