From 04597e06cdb05948fb145378d23a4cb5a90f3c0f Mon Sep 17 00:00:00 2001 From: yrp Date: Sun, 14 Feb 2021 21:41:02 -0800 Subject: Fix rust plugin linking on Windows Windows requires the symbols from the core to crate the plugin dll. As these were gated behind the headless feature, these didn't exist, and thus linking failed. Enabling the headless feature was also insufficient, as headless features disabled CorePluginABIVersion function. This patch turns all the headless cfgs into headless or windows cfgs. --- rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 3d287321..eba2d8ee 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -233,7 +233,7 @@ pub fn core_abi_minimum_version() -> u32 { } // Provide ABI version automatically so that the core can verify binary compatibility -#[cfg(not(feature = "headless"))] +#[cfg(any(windows, not(feature = "headless")))] #[no_mangle] #[allow(non_snake_case)] pub extern "C" fn CorePluginABIVersion() -> u32 { plugin_abi_version() } -- cgit v1.3.1