[benchmarks/ffi] `FfiCall` macos_arm64 support

We're not running benchmarks on M1s, but it's useful to be able to.

TEST=manually tested locally

Change-Id: Ic42ed8e4e61e7590ea03734f46fbec8b955be2ff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288203
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
diff --git a/benchmarks/FfiCall/dart/dlopen_helper.dart b/benchmarks/FfiCall/dart/dlopen_helper.dart
index 7f1bbf9..05e7a30 100644
--- a/benchmarks/FfiCall/dart/dlopen_helper.dart
+++ b/benchmarks/FfiCall/dart/dlopen_helper.dart
@@ -15,6 +15,7 @@
 // https://stackoverflow.com/questions/45125516/possible-values-for-uname-m
 final _unames = {
   'arm': arm,
+  'arm64': arm64,
   'aarch64_be': arm64,
   'aarch64': arm64,
   'armv8b': arm64,
diff --git a/benchmarks/FfiCall/native/Makefile b/benchmarks/FfiCall/native/Makefile
index eec4593..bb33457 100644
--- a/benchmarks/FfiCall/native/Makefile
+++ b/benchmarks/FfiCall/native/Makefile
@@ -55,3 +55,13 @@
 
 out/linux/arm/libnative_functions.so: out/linux/arm/native_functions.o
 	$(CCARM) $(CFLAGS) -s -shared -o $@ out/linux/arm/native_functions.o
+
+# On M1 Machine.
+out/mac/arm64:
+	mkdir -p out/mac/arm64
+
+out/mac/arm64/native_functions.o: native_functions.c | out/mac/arm64
+	$(CC) $(CFLAGS) -c -o $@ native_functions.c
+
+out/mac/arm64/libnative_functions.dylib: out/mac/arm64/native_functions.o
+	$(CC) $(CFLAGS) -s -shared -o $@ out/mac/arm64/native_functions.o