From 7d0695cb8b0df66777a63f4faab08533a499c32b Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 23 Jul 2019 00:24:13 +0800 Subject: [PATCH] disable libs for boost --- packages/b/boost/xmake.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/b/boost/xmake.lua b/packages/b/boost/xmake.lua index 4753f4b69..11c910ab8 100644 --- a/packages/b/boost/xmake.lua +++ b/packages/b/boost/xmake.lua @@ -56,7 +56,8 @@ package("boost") "--libdir=" .. package:installdir("lib"), "--without-icu" } - local libs = {} + local libs_enabled = {} + local libs_disabled = {} local libnames = {"filesystem", "fiber", "coroutine", @@ -77,11 +78,16 @@ package("boost") "iostreams"} for _, libname in ipairs(libnames) do if package:config(libname) then - table.insert(libs, libname) + table.insert(libs_enabled, libname) + else + table.insert(libs_disabled, libname) end end - if #libs > 0 then - table.insert(bootstrap_argv, "--with-libraries=" .. table.concat(libs, ",")) + if #libs_enabled > 0 then + table.insert(bootstrap_argv, "--with-libraries=" .. table.concat(libs_enabled, ",")) + end + if #libs_disabled > 0 then + table.insert(bootstrap_argv, "--without-libraries=" .. table.concat(libs_disabled, ",")) end local argv = {