1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 21:47:45 +00:00

Ports: Update tinycc's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 23:49:00 +04:30 committed by Ali Mohammad Pur
parent 3531aa2b84
commit a20773b5ce
5 changed files with 62 additions and 22 deletions

View file

@ -0,0 +1,25 @@
From efa276eb16b2857f2fb2c8bc372debf0b14574d9 Mon Sep 17 00:00:00 2001
From: Sergey Bugaev <bugaevc@gmail.com>
Date: Wed, 2 Oct 2019 22:50:20 +0300
Subject: [PATCH 1/2] Disable backtrace on serenity
---
tcc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tcc.h b/tcc.h
index ccb3b60..efc54be 100644
--- a/tcc.h
+++ b/tcc.h
@@ -184,7 +184,7 @@ extern long double strtold (const char *__nptr, char **__endptr);
# endif
#endif
-#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT
+#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT && !define __serenity__
# define CONFIG_TCC_BACKTRACE
# if (defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64 || \
defined TCC_TARGET_ARM || defined TCC_TARGET_ARM64 || \
--
2.36.1