mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 00:17:46 +00:00
Ports: Add luajit port
This commit is contained in:
parent
8cc757b92b
commit
ce5f34f153
5 changed files with 79 additions and 0 deletions
25
Ports/luajit/patches/0001-Recognize-Serenity-as-POSIX.patch
Normal file
25
Ports/luajit/patches/0001-Recognize-Serenity-as-POSIX.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
From 514ea84845d1cff0c274ac5e278c0a783d63032f Mon Sep 17 00:00:00 2001
|
||||
From: circl <circl.lastname@gmail.com>
|
||||
Date: Sat, 19 Mar 2022 20:05:26 +0100
|
||||
Subject: [PATCH 1/2] Recognize Serenity as POSIX
|
||||
|
||||
---
|
||||
src/lj_arch.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/lj_arch.h b/src/lj_arch.h
|
||||
index c8d7138..ba7be19 100644
|
||||
--- a/src/lj_arch.h
|
||||
+++ b/src/lj_arch.h
|
||||
@@ -74,7 +74,7 @@
|
||||
defined(__NetBSD__) || defined(__OpenBSD__) || \
|
||||
defined(__DragonFly__)) && !defined(__ORBIS__)
|
||||
#define LUAJIT_OS LUAJIT_OS_BSD
|
||||
-#elif (defined(__sun__) && defined(__svr4__)) || defined(__HAIKU__)
|
||||
+#elif (defined(__sun__) && defined(__svr4__)) || defined(__HAIKU__) || defined(__serenity__)
|
||||
#define LUAJIT_OS LUAJIT_OS_POSIX
|
||||
#elif defined(__CYGWIN__)
|
||||
#define LJ_TARGET_CYGWIN 1
|
||||
--
|
||||
2.32.0
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
From a8fd0e7a0e83e768acb4503ba06b19875c2b03ab Mon Sep 17 00:00:00 2001
|
||||
From: circl <circl.lastname@gmail.com>
|
||||
Date: Sat, 19 Mar 2022 20:07:39 +0100
|
||||
Subject: [PATCH 2/2] Serenity doesn't have setitimer
|
||||
|
||||
---
|
||||
src/lj_arch.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/lj_arch.h b/src/lj_arch.h
|
||||
index ba7be19..0bd7b1b 100644
|
||||
--- a/src/lj_arch.h
|
||||
+++ b/src/lj_arch.h
|
||||
@@ -490,6 +490,9 @@
|
||||
#define LJ_HASFFI 1
|
||||
#endif
|
||||
|
||||
+// FIXME: Disabled due to lack of setitimer
|
||||
+#define LUAJIT_DISABLE_PROFILE
|
||||
+
|
||||
#if defined(LUAJIT_DISABLE_PROFILE)
|
||||
#define LJ_HASPROFILE 0
|
||||
#elif LJ_TARGET_POSIX
|
||||
--
|
||||
2.32.0
|
||||
|
12
Ports/luajit/patches/ReadMe.md
Normal file
12
Ports/luajit/patches/ReadMe.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Patches for luajit on SerenityOS
|
||||
|
||||
## `0001-Recognize-Serenity-as-POSIX.patch`
|
||||
|
||||
Recognize Serenity as POSIX
|
||||
|
||||
|
||||
## `0002-Serenity-doesn-t-have-setitimer.patch`
|
||||
|
||||
Serenity doesn't have setitimer
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue