Browse Source

Fix wrong LLVM package name when GCC version is >= 10

pull/1529/head
josetr 5 years ago
parent
commit
53073ca2f8
  1. 8
      build/scripts/LLVM.lua

8
build/scripts/LLVM.lua

@ -120,13 +120,7 @@ function get_llvm_package_name(rev, conf, arch)
if UseClang() then if UseClang() then
table.insert(components, "clang") table.insert(components, "clang")
else else
local version = GccVersion() local version = string.match(GccVersion(), "%d+")
if version < "5.0.0" then
-- Minor version matters only with gcc 4.8/4.9
version = string.match(version, "%d+.%d+")
else
version = string.match(version, "%d+")
end
table.insert(components, "gcc-"..version) table.insert(components, "gcc-"..version)
end end
end end

Loading…
Cancel
Save