diff options
| author | Stefan Boberg <[email protected]> | 2025-11-10 18:34:35 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-11-10 18:34:35 +0100 |
| commit | 09828d5a378fc9fbe9a133f2a777b021a0b178ce (patch) | |
| tree | 345fb58d682c3c4661dea0e5ef5973cbf06e3fdf /xmake.lua | |
| parent | 5.7.9-pre13 (diff) | |
| download | zen-09828d5a378fc9fbe9a133f2a777b021a0b178ce.tar.xz zen-09828d5a378fc9fbe9a133f2a777b021a0b178ce.zip | |
switch back to openssl on Mac (#641)
* switch back to openssl for Mac (fixes cross-compilation config)
* add openssl 3.6.0 and change make target to install_dev for quicker install
* disable LTO on Mac to reduce build time on openssl3
* add mbedTLS 3.6.5 (but this is not used anywhere right now)
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -77,15 +77,10 @@ if is_plat("windows") then -- we use schannel on Windows add_defines("ZEN_USE_OPENSSL=0") add_requires("libcurl", {system = false}) -elseif is_plat("linux") then +elseif is_plat("linux", "macosx") then add_requires("openssl3", {system = false}) add_defines("ZEN_USE_OPENSSL=1") add_requires("libcurl", {system = false, configs = {openssl3 = true}}) -elseif is_plat("macosx") then - add_requires("mbedtls", {system = false}) - add_defines("ZEN_USE_OPENSSL=0") - add_defines("ZEN_USE_MBEDTLS=1") - add_requires("libcurl", {system = false, configs = {mbedtls = true}}) end -------------------------------------------------------------------------- @@ -124,7 +119,8 @@ if is_mode("release") then -- It's currently also temporarily disabled on Windows to investigate -- build issues due to git apply not applying the necessary patches correctly -- in CI for some reason. - if not is_plat("linux", "windows") then + -- Also, disabled LTO on Mac to reduce time spent building openssl tests + if not is_plat("linux", "windows", "macosx") then set_policy("build.optimization.lto", true) end set_optimize("fastest") |