From db19732ea9f4ab7b00eb8a051b70a359467b4cf3 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Jan 2025 22:07:33 +0800 Subject: [PATCH] disable headerunits for gcc/arm64 --- tests/projects/c++/modules/test_headerunits.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/projects/c++/modules/test_headerunits.lua b/tests/projects/c++/modules/test_headerunits.lua index b13b22a7f6..aaa350c7c5 100644 --- a/tests/projects/c++/modules/test_headerunits.lua +++ b/tests/projects/c++/modules/test_headerunits.lua @@ -44,7 +44,8 @@ function main(t) -- _build() elseif is_host("linux") then local gcc = find_tool("gcc", {version = true}) - if gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 then + if gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 and + os.arch() ~= "arm64" then -- gcc/arm64: internal compiler error: in core_vals, at cp/module.cc:6108 -- gcc dependency detection doesn't support header units atm os.exec("xmake f --policies=build.c++.gcc.fallbackscanner -c --yes") _build()