Skip to content

Commit

Permalink
Add linux-aarch64 and osx-arm64 support to rpsbproc (#51929)
Browse files Browse the repository at this point in the history
* Adding aarch64 and arm64 support to rpsbproc
Fix compile flags in build.sh to enable linux-aarch64.
Add linux-aarch64 and osx-arm64 to additional platforms.

* bump build number.

* Use make -j - speed up build time

* Fix make parallelism to 4 - per suggestion.

* Disable osx-arm64 as the build is failing due to being unable to find
the correct make, and tripping over the system one(s).
  • Loading branch information
dslarm authored Nov 5, 2024
1 parent 1d19c17 commit 3587571
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions recipes/rpsbproc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ CONFIGURE_FLAGS="$CONFIGURE_FLAGS --without-dll --with-static-exe"
# Platform-specific flags
if [[ "$(uname)" = "Linux" ]]; then
# --with(out)-64:
# Compile in 64-bit mode instead of 32-bit.
# Compile in 64-bit mode instead of 32-bit on x86_64 platforms.
# Flag not available for osx build.
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-64"
if [[ "$(arch)" = "x86_64" ]]; then
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-64"
fi
# --with(out)-openmp:
# Enable OpenMP extensions for all projects.
# Does not work without hacks for OSX
Expand All @@ -154,7 +156,7 @@ cd "$NCBI_CXX_TOOLKIT"
# Run GNU Make
cd "$RESULT_PATH/build"
echo "RUNNING MAKE" >&2
make -j1 -f Makefile.flat rpsbproc.exe >&2
make -j 4 -f Makefile.flat rpsbproc.exe >&2

# Copy compiled binaries to the Conda $PREFIX
mkdir -p "$PREFIX/bin"
Expand Down
6 changes: 5 additions & 1 deletion recipes/rpsbproc/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ source:
- update_configsub.patch

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

Expand Down Expand Up @@ -81,3 +81,7 @@ about:
extra:
identifiers:
- doi:10.1002/cpbi.90
additional-platforms:
- linux-aarch64
# osx-arm64 is encountering issues with Xcode and make during builds
# - osx-arm64

0 comments on commit 3587571

Please sign in to comment.