Support to control `lto` flag in boost (#1577)

Co-authored-by: Garfield Kuang <garfield.kuang@yubosecurities.com>
pull/1584/head
garfieldkwong 2 years ago committed by GitHub
parent e664465bd0
commit deb0bf9eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/b/boost/xmake.lua

@ -166,6 +166,10 @@ package("boost")
"debug-symbols=" .. (package:debug() and "on" or "off"),
"link=" .. (package:config("shared") and "shared" or "static")
}
if package:config("lto") then
table.insert(argv, "lto=on")
end
if package:is_arch(".+64.*") then
table.insert(argv, "address-model=64")
else

Loading…
Cancel
Save