From a7eaf90f14095e5ccd05de9587b5fcbc8e64616e Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 2 Feb 2021 23:00:25 +0800 Subject: [PATCH] improve llvm --- packages/l/llvm/xmake.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/l/llvm/xmake.lua b/packages/l/llvm/xmake.lua index a5a258d36..0b80496f4 100644 --- a/packages/l/llvm/xmake.lua +++ b/packages/l/llvm/xmake.lua @@ -48,8 +48,12 @@ package("llvm") add_configs("libcxxabi", {description = "Enable clang runtime.", default = true, type = "boolean"}) if is_host("linux") then - add_deps("libffi", {host = true}) - add_deps("binutils", {host = true}) -- needed for gold and strip + if linuxos.name() == "ubuntu" and linuxos.version():eq("20.04") and os.arch() == "x86_64" then + -- use binary directly + else + add_deps("libffi", {host = true}) + add_deps("binutils", {host = true}) -- needed for gold and strip + end end on_install("@macosx", "@windows", "@msys", "@bsd", function (package)