From 3352640d09873478093616d29c59c55dae57ef63 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 19 Dec 2023 11:27:00 +0200 Subject: [PATCH] LibC: strlen had to be marked not optimized... --- libc/string.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/string.cpp b/libc/string.cpp index 5f2928045..564030140 100644 --- a/libc/string.cpp +++ b/libc/string.cpp @@ -146,6 +146,7 @@ char* strndup(const char* str, size_t size) } #endif +__attribute__((optimize("-O0"))) size_t strlen(const char* str) { size_t len = 0;