diff --git a/recipes/vcf-validator/build.sh b/recipes/vcf-validator/build.sh index 1b1bad0e5fa5a..0d0600b32e55d 100644 --- a/recipes/vcf-validator/build.sh +++ b/recipes/vcf-validator/build.sh @@ -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 diff --git a/recipes/vcf-validator/meta.yaml b/recipes/vcf-validator/meta.yaml index 76476a1844f40..66ac7e00d8d62 100644 --- a/recipes/vcf-validator/meta.yaml +++ b/recipes/vcf-validator/meta.yaml @@ -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 @@ -49,6 +46,7 @@ about: extra: additional-platforms: + - linux-aarch64 - osx-arm64 recipe-maintainers: - apriltuesday