Skip to content

Commit fe470c9

Browse files
committed
disable headerunits for gcc/arm64
1 parent f3c8fc1 commit fe470c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/projects/c++/modules/test_headerunits.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ function main(t)
4444
-- _build()
4545
elseif is_host("linux") then
4646
local gcc = find_tool("gcc", {version = true})
47-
if gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 then
47+
if gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 and
48+
not is_host("arm64") then -- gcc/arm64: internal compiler error: in core_vals, at cp/module.cc:6108
4849
-- gcc dependency detection doesn't support header units atm
4950
os.exec("xmake f --policies=build.c++.gcc.fallbackscanner -c --yes")
5051
_build()

0 commit comments

Comments
 (0)