1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Index: llvm-toolchain-snapshot_21~++20250422120724+c1940cd0deef/compiler-rt/lib/builtins/clear_cache.c
===================================================================
--- llvm-toolchain-snapshot_21~++20250422120724+c1940cd0deef.orig/compiler-rt/lib/builtins/clear_cache.c
+++ llvm-toolchain-snapshot_21~++20250422120724+c1940cd0deef/compiler-rt/lib/builtins/clear_cache.c
@@ -6,6 +6,11 @@
//
//===----------------------------------------------------------------------===//
+#if defined(__linux__) && defined(__mips__)
+// Otherwise, the build fails as it cannot find syscall
+#define _GNU_SOURCE
+#endif
+
#include "int_lib.h"
#if defined(__linux__)
#include <assert.h>
|