mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Toolchain: Disable exceptions by default
We now configure gcc to always use the -fno-exceptions flag. This does not affect our code since we do not use exceptions, and also fixes the gcc port.
This commit is contained in:
parent
7b9322dbc5
commit
8d04bb4d7b
Notes:
sideshowbarker
2024-07-19 00:07:00 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/8d04bb4d7b5 Pull-request: https://github.com/SerenityOS/serenity/pull/4805
1 changed files with 7 additions and 1 deletions
|
@ -102,7 +102,7 @@ diff -ruN a/gcc/config/arm/serenity-elf.h b/gcc/config/arm/serenity-elf.h
|
|||
diff -ruN a/gcc/config/serenity.h b/gcc/config/serenity.h
|
||||
--- a/gcc/config/serenity.h 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ b/gcc/config/serenity.h 2020-12-12 10:43:35.280270540 +0200
|
||||
@@ -0,0 +1,31 @@
|
||||
@@ -0,0 +1,37 @@
|
||||
+/* Useful if you wish to make target-specific GCC changes. */
|
||||
+#undef TARGET_SERENITY
|
||||
+#define TARGET_SERENITY 1
|
||||
|
@ -124,6 +124,12 @@ diff -ruN a/gcc/config/serenity.h b/gcc/config/serenity.h
|
|||
+#undef LINK_SPEC
|
||||
+#define LINK_SPEC "%{shared:-shared} %{static:-static} %{!static: %{rdynamic:-export-dynamic} %{!fbuilding-libgcc:-lgcc_s -dynamic-linker /usr/lib/Loader.so}}"
|
||||
+
|
||||
+#undef CC1_SPEC
|
||||
+#define CC1_SPEC "-fno-exceptions"
|
||||
+
|
||||
+#undef CC1PLUS_SPEC
|
||||
+#define CC1PLUS_SPEC "-fno-exceptions"
|
||||
+
|
||||
+/* Additional predefined macros. */
|
||||
+#undef TARGET_OS_CPP_BUILTINS
|
||||
+#define TARGET_OS_CPP_BUILTINS() \
|
||||
|
|
Loading…
Reference in a new issue