Fix windows cross compile
@@ -7,3 +7,10 @@ sed -i.bak "s/@rust_arch_env@/$rust_arch_env/g" activate.sh
sed -i.bak "s/@rust_default_cc@/$rust_default_cc/g" activate.sh
sed -i.bak "s/@cross_target_platform@/$cross_target_platform/g" activate.sh
cp activate.sh ${PREFIX}/etc/conda/activate.d/activate_${PKG_NAME}.sh
+
+if [[ "$cross_target_platform" == "win-64" ]]; then
+ mkdir -p $PREFIX/lib/rustlib/x86_64-pc-windows-msvc/lib/
+ for f in $PREFIX/Library/lib/rustlib/x86_64-pc-windows-msvc/lib/*; do
+ ln -s $f $PREFIX/lib/rustlib/x86_64-pc-windows-msvc/lib/
+ done
+fi
