mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
CMake: Restore static PCRE2 builds
Some checks failed
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Lock threads / lock (push) Has been cancelled
Some checks failed
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Lock threads / lock (push) Has been cancelled
The recent update to the rust-pcre2 crate lost the property where a static PCRE2 build could be enabled with a Cargo feature. This means that static PCRE2 builds can no longer be forced. Switch to setting the "PCRE2_SYS_STATIC" variable again, which is how the official rust-pcre2 crate expects to work.
This commit is contained in:
parent
c227233571
commit
4e79ec5f0e
|
@ -6,5 +6,5 @@ if(FISH_USE_SYSTEM_PCRE2)
|
|||
set(FISH_PCRE2_BUILDFLAG "")
|
||||
else()
|
||||
message(STATUS "Forcing static build of PCRE2")
|
||||
set(FISH_PCRE2_BUILDFLAG "CARGO_FEATURE_STATIC_PCRE2=1")
|
||||
set(ENV{PCRE2_SYS_STATIC} "1")
|
||||
endif(FISH_USE_SYSTEM_PCRE2)
|
||||
|
|
|
@ -56,6 +56,5 @@ set(VARS_FOR_CARGO
|
|||
"LOCALEDIR=${CMAKE_INSTALL_FULL_LOCALEDIR}"
|
||||
"CARGO_TARGET_DIR=${FISH_RUST_BUILD_DIR}"
|
||||
"CARGO_BUILD_RUSTC=${RUSTC_EXECUTABLE}"
|
||||
"${FISH_PCRE2_BUILDFLAG}"
|
||||
"RUSTFLAGS=$ENV{RUSTFLAGS} ${rust_debugflags}"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user