Skip to content

Commit

Permalink
disable headerunits for gcc/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 19, 2025
1 parent f3c8fc1 commit fe470c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/test_headerunits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
not is_host("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()
Expand Down

0 comments on commit fe470c9

Please sign in to comment.