fix(lua): use native architecture when compiling lua for s390x.

Signed-off-by: iko1 <me@remotecpp.dev>
This commit is contained in:
iko1 2023-05-14 14:00:52 +03:00
parent 956b39c553
commit 6cc5d8a8ed

View file

@ -12,7 +12,7 @@ index d42d14b7..75647e72 100644
#define LUAI_MAXSTACK 15000
#endif
diff --git a/makefile b/makefile
index d46e650c..e347e614 100644
index d46e650..bf6665a 100644
--- a/makefile
+++ b/makefile
@@ -66,13 +66,23 @@ LOCAL = $(TESTS) $(CWARNS)
@ -32,6 +32,8 @@ index d46e650c..e347e614 100644
+OPTFLAGS= -march=sandybridge
+else ifeq ($(uname_m), aarch64)
+OPTFLAGS= -march=armv8.2-a+fp16+rcpc+dotprod+crypto
+else ifeq ($(uname_m), s390x)
+OPTFLAGS= -march=native
+else
+ $(error ERROR: unknown architecture $(uname_m))
+endif