Skip to content

Commit

Permalink
Add support for Linux ARM64
Browse files Browse the repository at this point in the history
rcedgar/muscle#73

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Mar 18, 2024
1 parent 5e0ab9c commit 779e013
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/muscle/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ package:
source:
url: https://github.com/rcedgar/muscle/archive/refs/tags/{{ version }}.tar.gz
sha256: 2bba8b06e3ccabf6465fa26f459763b2029d7e7b9596881063e3aaba60d9e87d
patches:
- support-linux-aarch64.patch

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

Expand Down
13 changes: 13 additions & 0 deletions recipes/muscle/support-linux-aarch64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git i/src/myutils.h w/src/myutils.h
index 49d28ef..8e8167e 100644
--- i/src/myutils.h
+++ w/src/myutils.h
@@ -11,7 +11,7 @@
#define TRACK_ALLOC 0
#define ALLOC_TOTALS 0

-#if defined(__x86_64__) || defined(_M_X64) || defined(__arm64__)
+#if defined(__x86_64__) || defined(_M_X64) || defined(__arm64__) || defined(__aarch64__)
#define BITS 64
#else
#define BITS 32

0 comments on commit 779e013

Please sign in to comment.