diff --git a/libc/string.cpp b/libc/string.cpp index 5f29280456..5640301400 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;