Skip to content

Commit

Permalink
fix(lua): use native architecture when compiling lua for s390x.
Browse files Browse the repository at this point in the history
Signed-off-by: iko1 <me@remotecpp.dev>
  • Loading branch information
iko1 committed Jun 17, 2023
1 parent 956b39c commit 6cc5d8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion patches/lua-v5.4.4.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 6cc5d8a

Please sign in to comment.