mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix(lua): use native architecture when compiling lua for s390x.
Signed-off-by: iko1 <me@remotecpp.dev>
This commit is contained in:
parent
956b39c553
commit
6cc5d8a8ed
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue