rattler/scripts/activate_linux.sh
Hofer-Julian f81bed683a
fix: compiling with pixi on linux (#1097)
* fix: compiling with pixi on linux

I mostly had to switch from native-tls to rust-tls.

Annoyingly, I didn't manage to convince the build-process to find libclang needed to compile libsolv so I skip that test for now

* Update pixi.toml
2025-02-24 15:59:06 +01:00

8 lines
381 B
Bash

# Ignore requiring a shebang as this is a script meant to be sourced
# shellcheck disable=SC2148
# Setup the mold linker when targeting x86_64-unknown-linux-gnu
set -Eeuo pipefail
export CARGO_TARGET_DIR=".pixi/target"
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="clang"
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS="-C link-arg=-fuse-ld=$CONDA_PREFIX/bin/mold"