Skip to content

Commit

Permalink
chopper: add aarch64/arm64 build
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Aug 20, 2024
1 parent 93f99d8 commit 1727ead
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
9 changes: 4 additions & 5 deletions recipes/chopper/build.sh
Original file line number Diff line number Diff line change
@@ -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 .
11 changes: 8 additions & 3 deletions recipes/chopper/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package:
version: {{ version }}

build:
number: 0
number: 1
run_exports:
- {{ pin_subpackage('chopper', max_pin="x.x") }}

Expand All @@ -15,10 +15,10 @@ source:

requirements:
build:
- rust >=1.64
- {{ compiler('cxx') }}
- {{ compiler('rust') }}
- autoconf
- make
- {{ compiler('cxx') }}
- pkg-config
- cmake
- zlib
Expand All @@ -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

0 comments on commit 1727ead

Please sign in to comment.