mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
llvm20: add _GNU_SOURCE define for the builder
the builder is a bit behind the r1beta5 branch
This commit is contained in:
@@ -370,7 +370,7 @@ index a1e9eca..cc563d7 100644
|
||||
2.45.2
|
||||
|
||||
|
||||
From fe2ce5b227045fa7431fa1974506b983127b982a Mon Sep 17 00:00:00 2001
|
||||
From 8e4dcdc6b46688e5067bef2bdc07a81d932af3ed Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
|
||||
Date: Thu, 6 Feb 2025 21:08:43 +0100
|
||||
Subject: Haiku: Address sanitizer on x86_64
|
||||
@@ -505,21 +505,22 @@ index cf729c3..e3310b1 100644
|
||||
else()
|
||||
set(COMPILER_RT_HAS_UBSAN FALSE)
|
||||
diff --git a/compiler-rt/lib/asan/asan_linux.cpp b/compiler-rt/lib/asan/asan_linux.cpp
|
||||
index 4cabca3..6fcd4e0 100644
|
||||
index 4cabca3..b047eec 100644
|
||||
--- a/compiler-rt/lib/asan/asan_linux.cpp
|
||||
+++ b/compiler-rt/lib/asan/asan_linux.cpp
|
||||
@@ -12,8 +12,9 @@
|
||||
@@ -12,8 +12,10 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "sanitizer_common/sanitizer_platform.h"
|
||||
+#define _DEFAULT_SOURCE 1
|
||||
+#define _GNU_SOURCE 1
|
||||
#if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD || \
|
||||
- SANITIZER_SOLARIS
|
||||
+ SANITIZER_SOLARIS || SANITIZER_HAIKU
|
||||
|
||||
# include <dlfcn.h>
|
||||
# include <fcntl.h>
|
||||
@@ -22,7 +23,9 @@
|
||||
@@ -22,7 +24,9 @@
|
||||
# include <stdio.h>
|
||||
# include <sys/mman.h>
|
||||
# include <sys/resource.h>
|
||||
@@ -529,7 +530,7 @@ index 4cabca3..6fcd4e0 100644
|
||||
# include <sys/time.h>
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
@@ -37,7 +40,7 @@
|
||||
@@ -37,7 +41,7 @@
|
||||
# include "sanitizer_common/sanitizer_libc.h"
|
||||
# include "sanitizer_common/sanitizer_procmaps.h"
|
||||
|
||||
@@ -538,7 +539,7 @@ index 4cabca3..6fcd4e0 100644
|
||||
# include <sys/link_elf.h>
|
||||
# endif
|
||||
|
||||
@@ -45,8 +48,12 @@
|
||||
@@ -45,8 +49,12 @@
|
||||
# include <link.h>
|
||||
# endif
|
||||
|
||||
@@ -552,7 +553,7 @@ index 4cabca3..6fcd4e0 100644
|
||||
# elif SANITIZER_NETBSD
|
||||
# include <link_elf.h>
|
||||
# include <ucontext.h>
|
||||
@@ -125,6 +132,12 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size,
|
||||
@@ -125,6 +133,12 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size,
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user