mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
build: fix universal mac builds
Cmake 3.28+ will fail if two projects download the same file to prevent scheduling problems. This can be circumvented by downloading luajit to a unique location for each target. This is theoretically non-optimal since we need to download the same file three times for universal builds, but universal builds are rare and the convenience of this method outweighs setting up the dependencies optimally. This fixes the currently broken release workflow for mac. Closes https://github.com/neovim/neovim/issues/26526.
This commit is contained in:
parent
69f5f0e20e
commit
896b400bff
@ -18,7 +18,7 @@ function(BuildLuajit)
|
|||||||
ExternalProject_Add(${_luajit_TARGET}
|
ExternalProject_Add(${_luajit_TARGET}
|
||||||
URL ${LUAJIT_URL}
|
URL ${LUAJIT_URL}
|
||||||
URL_HASH SHA256=${LUAJIT_SHA256}
|
URL_HASH SHA256=${LUAJIT_SHA256}
|
||||||
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/luajit
|
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/${_luajit_TARGET}
|
||||||
CONFIGURE_COMMAND "${_luajit_CONFIGURE_COMMAND}"
|
CONFIGURE_COMMAND "${_luajit_CONFIGURE_COMMAND}"
|
||||||
BUILD_IN_SOURCE 1
|
BUILD_IN_SOURCE 1
|
||||||
BUILD_COMMAND "${_luajit_BUILD_COMMAND}"
|
BUILD_COMMAND "${_luajit_BUILD_COMMAND}"
|
||||||
|
Loading…
Reference in New Issue
Block a user