Skip to content

Commit

Permalink
vcf-validator: Use -funsigned-char for ARM64
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Oct 16, 2024
1 parent b127f4f commit e3e31a0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion recipes/vcf-validator/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ set -x
# Set c++ to version 11
export CXXFLAGS="-std=c++11 ${CXXFLAGS}"

case $(uname -m) in
aarch64 | arm64)
export CXXFLAGS="${CXXFLAGS} -funsigned-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" ..
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
Expand Down

0 comments on commit e3e31a0

Please sign in to comment.