diff options
| author | Arthur LAURENT <[email protected]> | 2024-02-14 13:33:55 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-02-14 13:34:14 +0100 |
| commit | be329f008903ce4989bdd0de7cea6f48d54b2d63 (patch) | |
| tree | 12a0578c750a59adc169847d69ca6c0ffea1d274 /xmake/rules/c++/modules/modules_support | |
| parent | 04cee167684b1ad14f1c653dbd262253459d509e (diff) | |
cleanup
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
3 files changed, 1 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/builder.lua b/xmake/rules/c++/modules/modules_support/builder.lua index 23515e988..a33f69261 100644 --- a/xmake/rules/c++/modules/modules_support/builder.lua +++ b/xmake/rules/c++/modules/modules_support/builder.lua @@ -99,7 +99,7 @@ function _are_flags_compatible(target, other, cppfile) table.sort(flags1) table.sort(flags2) - for i = 1,#flags1 do + for i = 1, #flags1 do if flags1[i] ~= flags2[i] then return false end diff --git a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua index 7d25c5fcc..49e01db90 100644 --- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua @@ -128,7 +128,6 @@ function strip_flags(target, flags) local last_flag_I = false for _, flag in ipairs(flags) do local strip = false - for _, _flag in ipairs(strippable_flags) do if flag:startswith(_flag) or last_flag_I then last_flag_I = _flag == "-I" @@ -136,7 +135,6 @@ function strip_flags(target, flags) break end end - if not strip then table.insert(output, flag) end 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 95067567b..2253c9866 100644 --- a/xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua @@ -85,7 +85,6 @@ function strip_flags(target, flags) local last_flag_I = false for _, flag in ipairs(flags) do local strip = false - for _, _flag in ipairs(strippable_flags) do if flag:startswith(_flag) or last_flag_I then last_flag_I = _flag == "-I" |
