From 1727eadcb9d6ac31c558b2e4f67bd0ec93e882a9 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Tue, 20 Aug 2024 10:00:34 +0300 Subject: [PATCH] chopper: add aarch64/arm64 build Signed-off-by: Martin Tzvetanov Grigorov --- recipes/chopper/build.sh | 9 ++++----- recipes/chopper/meta.yaml | 11 ++++++++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/recipes/chopper/build.sh b/recipes/chopper/build.sh index be24ecc64d3c67..86a2a5893751b7 100644 --- a/recipes/chopper/build.sh +++ b/recipes/chopper/build.sh @@ -1,10 +1,9 @@ -#!/bin/bash -euo +#!/bin/bash + +set -xeuo + export CFLAGS="${CFLAGS} -fcommon" export CXXFLAGS="${CFLAGS} -fcommon" -# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details. -# We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct. -export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo" - # build statically linked binary with Rust RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path . diff --git a/recipes/chopper/meta.yaml b/recipes/chopper/meta.yaml index 00dbb1806606eb..21ccfd62cf8121 100644 --- a/recipes/chopper/meta.yaml +++ b/recipes/chopper/meta.yaml @@ -5,7 +5,7 @@ package: version: {{ version }} build: - number: 0 + number: 1 run_exports: - {{ pin_subpackage('chopper', max_pin="x.x") }} @@ -15,10 +15,10 @@ source: requirements: build: - - rust >=1.64 + - {{ compiler('cxx') }} + - {{ compiler('rust') }} - autoconf - make - - {{ compiler('cxx') }} - pkg-config - cmake - zlib @@ -39,3 +39,8 @@ about: license: MIT license_file: LICENSE summary: A rust command line for filtering and trimming long reads. + +extra: + additional-platforms: + - linux-aarch64 + - osx-arm64