syscall-mips64el-def.diff: fix the call to undeclared function 'syscall'; on mips

This commit is contained in:
Sylvestre Ledru 2022-09-02 11:49:12 +02:00
parent 9ccfbc2edd
commit bbdeb8c37a
3 changed files with 24 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-15 (1:15.0.0~+rc3-1~exp3) UNRELEASED; urgency=medium
* syscall-mips64el-def.diff: fix the call to undeclared function 'syscall';
on mips
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 02 Sep 2022 11:43:11 +0200
llvm-toolchain-15 (1:15.0.0~+rc3-1~exp2) experimental; urgency=medium
* Update of the build dep from llvm-spirv => llvm-spirv-14

View File

@ -0,0 +1,16 @@
Index: llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/builtins/clear_cache.c
===================================================================
--- llvm-toolchain-15-15.0.0~+rc3.orig/compiler-rt/lib/builtins/clear_cache.c
+++ llvm-toolchain-15-15.0.0~+rc3/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>

View File

@ -77,6 +77,7 @@ libcxx/libcxx-silent-failure-arm64.diff
mips/mips-fpxx-enable.diff
mips/mips-force-nomadd4.patch
mips/mips-D101773-reloc.patch
mips/syscall-mips64el-def.diff
26-set-correct-float-abi.diff
clang-baseline-fix-i386.patch