From be329f008903ce4989bdd0de7cea6f48d54b2d63 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 14 Feb 2024 13:33:55 +0100 Subject: cleanup --- xmake/rules/c++/modules/modules_support/builder.lua | 2 +- xmake/rules/c++/modules/modules_support/clang/compiler_support.lua | 2 -- xmake/rules/c++/modules/modules_support/gcc/compiler_support.lua | 1 - 3 files changed, 1 insertion(+), 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" -- cgit v1.3.1