diff options
| author | Arthur LAURENT <[email protected]> | 2023-01-23 11:58:45 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-01-23 11:58:45 +0100 |
| commit | acedc8854cdf5e59915bfcf6fc1e979b91ff4d6b (patch) | |
| tree | eada536d0080da7d63cfe7774b7a1452cf9a9eb6 /xmake/rules/c++/modules/modules_support/gcc.lua | |
| parent | 1294b1fa8b7022c711f148de258756794cf8ae66 (diff) | |
format
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index ee3f547bd..3ab790daf 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -203,7 +203,9 @@ function generate_dependencies(target, sourcebatch, opt) local flags = {} local next_flag = false for _, flag in ipairs(compflags) do - if flag == "-m64" or flag == "-g" or flag:startswith("-m") or flag:startswith("-std") or (flag:startswith("-f") and not flag:startswith("-fmodule")) or flag:startswith("-D") or flag:startswith("-U") or flag:startswith("-I") or flag:startswith("-isystem") or next_flag then + if flag == "-m64" or flag == "-g" or flag:startswith("-m") or flag:startswith("-std") or + (flag:startswith("-f") and not flag:startswith("-fmodule")) or flag:startswith("-D") or + flag:startswith("-U") or flag:startswith("-I") or flag:startswith("-isystem") or next_flag then table.insert(flags, flag) next_flag = false if flag:startswith("-isystem") then |
