fix: static build for packages with shared=true as default. (#1502)

pull/1504/head
Chen Yufei 3 years ago committed by GitHub
parent 15465c7258
commit 7defc694b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      scripts/test.lua

@ -113,10 +113,10 @@ function _require_packages(argv, packages)
if argv.mode == "debug" then
extra.debug = true
end
if argv.kind == "shared" then
extra.configs = extra.configs or {}
extra.configs.shared = true
end
-- Some packages set shared=true as default, so we need to force set
-- shared=false to test static build.
extra.configs = extra.configs or {}
extra.configs.shared = argv.kind == "shared"
local configs = argv.configs
if configs then
extra.system = false

Loading…
Cancel
Save