Skip to content

Commit

Permalink
Enable HDF5 build on aarch64 machine
Browse files Browse the repository at this point in the history
Additional platform check handling for linux-arm64 machines to account for aarch64 as a possible machine type.

New code for the `"$MACHINE_TYPE" =~ aarch64` case executes same commands for arm64 machine type, but omitting `-m64` flags from g++ and gcc as they are unnecessary and throw errors on aarch64.
  • Loading branch information
grohli authored Dec 19, 2024
1 parent 2d25547 commit f18947d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hdf5/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ case $PLATFORM in
./configure --prefix=$INSTALL_PATH CC="gcc -m64" CXX="g++ -m64" --enable-cxx --enable-java
make -j $MAKEJ
make install-strip
elif [[ "$MACHINE_TYPE" =~ aarch64 ]]; then
./configure --prefix=$INSTALL_PATH CC="gcc" CXX="g++" --enable-cxx --enable-java
make -j $MAKEJ
make install-strip
else
echo "Not native arm so assume cross compiling"
patch -Np1 < ../../../hdf5-linux-arm64.patch || true
Expand Down

0 comments on commit f18947d

Please sign in to comment.