Skip to content

Commit

Permalink
odgi: add linux-aarch64 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 Jun 24, 2024
1 parent 6a8cd82 commit 85959ce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
17 changes: 15 additions & 2 deletions recipes/odgi/build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
#!/bin/bash

set -xe

export LIBRARY_PATH=${PREFIX}/lib
export LD_LIBRARY_PATH=${PREFIX}/lib
export CPATH=${PREFIX}/include
export C_INCLUDE_PATH=${PREFIX}/include
export CPLUS_INCLUDE_PATH=${PREFIX}/include
export CPP_INCLUDE_PATH=${PREFIX}/include
export CXX_INCLUDE_PATH=${PREFIX}/include

case $(uname -m) in
x86_64)
ARCH_OPTS="-march=sandybridge"
;;
*)
ARCH_OPTS=""
;;
esac

#cmake -H. -Bbuild -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS='-march=sandybridge -Ofast -Og'
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS='-march=sandybridge -Ofast'
cmake --build build
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS="${ARCH_OPTS} -Ofast"
cmake --build build -j ${CPU_COUNT}
mkdir -p $PREFIX/bin
mv bin/* $PREFIX/bin
PYVER=`python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))'`
Expand Down
6 changes: 4 additions & 2 deletions recipes/odgi/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ source:
sha256: a6db190b782608082b14b42c660389aa18010791de1e2d07e29f7f61d8787754

build:
skip: True # [osx or py27]
number: 1
skip: True # [osx]
number: 2
run_exports:
- {{ pin_subpackage(name, max_pin="x.x") }}

Expand Down Expand Up @@ -44,5 +44,7 @@ about:
summary: An optimized dynamic genome/graph implementation

extra:
additional-platforms:
- linux-aarch64
recipe-maintainers:
- AndreaGuarracino

0 comments on commit 85959ce

Please sign in to comment.