diff options
| author | Arthur LAURENT <[email protected]> | 2024-01-23 20:07:54 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-01-26 18:20:59 +0100 |
| commit | d9146626a3e55616446246a2a12166cc12ff806a (patch) | |
| tree | 0708459fccf73f3be5afdec4f6023187a2800f3c | |
| parent | a6f1cc3b301da925684e937489bddf8c41ac440a (diff) | |
fix headerunit compilation on clang
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang/builder.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang/builder.lua b/xmake/rules/c++/modules/modules_support/clang/builder.lua index c366c483d..0e51bd93e 100644 --- a/xmake/rules/c++/modules/modules_support/clang/builder.lua +++ b/xmake/rules/c++/modules/modules_support/clang/builder.lua @@ -50,9 +50,9 @@ function _make_modulebuildflags(target, provide, bmifile, opt) end if opt.name == "std" or opt.name == "std.compat" then - table.join2(flags[1], {"-Wno-include-angled-in-module-purview", "-Wno-reserved-module-identifier", "-ferror-limit=1000"}) + table.join2(flags[1], {"-Wno-include-angled-in-module-purview", "-Wno-reserved-module-identifier"}) if flags[2] then - table.join2(flags[2], {"-Wno-include-angled-in-module-purview", "-Wno-reserved-module-identifier", "-ferror-limit=1000"}) + table.join2(flags[2], {"-Wno-include-angled-in-module-purview", "-Wno-reserved-module-identifier"}) end end @@ -69,7 +69,7 @@ function _make_headerunitflags(target, headerunit, bmifile) local headertype = (headerunit.type == ":angle") and "system" or "user" - local flags = table.join(local_directory, {"-xc++-header", "-Wno-everything", module_headerflag .. headertype, "-o", bmifile, "-c", path.filename(headerunit.path)}) + local flags = table.join(local_directory, {"-xc++-header", "-Wno-everything", module_headerflag .. headertype, "-o", bmifile, "-c", headerunit.path}) return flags end |
