aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2024-09-17 16:38:47 +0000
committerFelix Morgner <felix.morgner@ost.ch>2024-09-17 16:38:54 +0000
commit90439af208b6ca4c1290b9d2fcbde3e09d0b8842 (patch)
tree8c38aba8f72351ff7a1d8785d29f1e4abb9e35b3
parentb0a8b9e80468a61994dec17be6b5ee6516efa73a (diff)
downloadteachos-90439af208b6ca4c1290b9d2fcbde3e09d0b8842.tar.xz
teachos-90439af208b6ca4c1290b9d2fcbde3e09d0b8842.zip
build: user no-red-zone CRT code
Even though it makes no difference, since the CRT code we pull in from the toolchain will never touch the red zone in the first place, it is a good idea to try to be consistent across the build.
-rw-r--r--cmake/Platforms/x86_64.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Platforms/x86_64.cmake b/cmake/Platforms/x86_64.cmake
index 291cbaa..c31150c 100644
--- a/cmake/Platforms/x86_64.cmake
+++ b/cmake/Platforms/x86_64.cmake
@@ -1,4 +1,4 @@
-execute_process(COMMAND "x86_64-elf-g++" "-print-file-name=crtbegin.o"
+execute_process(COMMAND "x86_64-elf-g++" "-mno-red-zone" "-print-file-name=crtbegin.o"
OUTPUT_VARIABLE CRT_BEGIN
ERROR_QUIET
)