summaryrefslogtreecommitdiff
path: root/Ports/tinycc/patches
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-10-02 22:50:20 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-10-03 08:18:05 +0200
commitad51a70c545545267bdfa16416b91304b72ed7bb (patch)
tree6e2521b75641decc7538311a2c58d3caafe9073b /Ports/tinycc/patches
parent89bf38864a300dacc73e516fe359bd7a94a2ab98 (diff)
downloadserenity-ad51a70c545545267bdfa16416b91304b72ed7bb.zip
Ports: Add a TinyCC port
It does build, but doesn't quite work yet.
Diffstat (limited to 'Ports/tinycc/patches')
-rw-r--r--Ports/tinycc/patches/disable-backtrace.patch11
-rw-r--r--Ports/tinycc/patches/targetos.patch11
2 files changed, 22 insertions, 0 deletions
diff --git a/Ports/tinycc/patches/disable-backtrace.patch b/Ports/tinycc/patches/disable-backtrace.patch
new file mode 100644
index 0000000000..13a46fa373
--- /dev/null
+++ b/Ports/tinycc/patches/disable-backtrace.patch
@@ -0,0 +1,11 @@
+--- tinycc-dev/tcc.h 2019-05-14 22:40:39.000000000 +0300
++++ tinycc-dev-serenity/tcc.h 2019-10-02 13:37:16.919990212 +0300
+@@ -162,7 +162,7 @@
+ # endif
+ #endif
+
+-#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT
++#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT && !defined __serenity__
+ # define CONFIG_TCC_BACKTRACE
+ # if (defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64) \
+ && !defined TCC_UCLIBC && !defined TCC_MUSL
diff --git a/Ports/tinycc/patches/targetos.patch b/Ports/tinycc/patches/targetos.patch
new file mode 100644
index 0000000000..82840548db
--- /dev/null
+++ b/Ports/tinycc/patches/targetos.patch
@@ -0,0 +1,11 @@
+--- tinycc-dev/configure 2019-05-14 22:40:39.000000000 +0300
++++ tinycc-dev-serenity/configure 2019-10-02 13:31:15.464543005 +0300
+@@ -49,7 +49,7 @@
+ gcc_minor=0
+
+ # OS specific
+-targetos=`uname`
++targetos=Serenity
+ case $targetos in
+ Darwin)
+ confvars="$confvars OSX"