Skip to content

Commit

Permalink
vcf-validator: add linux-aarch64 build (#51425)
Browse files Browse the repository at this point in the history
* vcf-validator: add linux-aarch64 build

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* vcf-validator: Use -fsigned-char for ARM64

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored Oct 17, 2024
1 parent 67dbb42 commit b81a9fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
14 changes: 12 additions & 2 deletions recipes/vcf-validator/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
#!/bin/bash

set -x

# Set c++ to version 11
export CXXFLAGS="-std=c++11 ${CXXFLAGS}"

case $(uname -m) in
aarch64 | arm64)
export CXXFLAGS="${CXXFLAGS} -fsigned-char" # .../vcf/compression.cpp:101:9: error: narrowing conversion of '-117' from 'int' to 'char'
;;
*)
;;
esac

mkdir build || { echo "Failed to create build directory" >&2; exit 1; }
cd build || { echo "Failed to go into build directory" >&2; exit 1; }
cmake -G "Unix Makefiles" ..
make -j2 || { echo "Build failed" >&2; exit 1; }
cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="${CXXFLAGS}" ..
make -j"${CPU_COUNT}" || { echo "Build failed" >&2; exit 1; }
cd .. || { echo "Failed to return to parent directory" >&2; exit 1; }
if ! ./build/bin/test_validation_suite; then
echo "Validation suite failed" >&2
Expand Down
10 changes: 4 additions & 6 deletions recipes/vcf-validator/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,22 @@ source:
sha256: b46117700445644e6fc5a6d2655b477902c67aba0e7abe8a62df6cb49f923fff

build:
script:
number: 0
number: 1
run_exports:
- {{ pin_subpackage("vcf-validator", max_pin="x.x") }}

requirements:
host:
- libboost-devel
- libcurl
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- make
- cmake >=2.8
host:
- libboost-devel
- libcurl
- libtool
- zstd
- c-ares
- libcurl
- openssl
- bzip2
- libzlib
Expand All @@ -49,6 +46,7 @@ about:

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- apriltuesday
Expand Down

0 comments on commit b81a9fe

Please sign in to comment.