Update to a LLVM 5.0-ish version from trunk
Using the 5.0 release branch should work equally well except for aarch64/win support.
This commit is contained in:
1 parent
9fe9a5e2e4
commit
bf656d77e7
23 files changed
+655
-4236
No files matched your search
@@ -1,59 +0,0 @@
|
||||
From a91ea0b2d56e1dc45dbe3edda9e16a8724311d21 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Storsjo <martin@martin.st>
|
||||
Date: Thu, 25 Aug 2016 12:59:57 +0300
|
||||
Subject: [PATCH 2/2] Hack
|
||||
|
||||
Also remove unnecessary defines for open/read/close that are handled
|
||||
by linker aliases now.
|
||||
---
|
||||
include/support/win32/locale_win32.h | 6 ++----
|
||||
src/new.cpp | 2 +-
|
||||
2 files changed, 3 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/include/support/win32/locale_win32.h b/include/support/win32/locale_win32.h
|
||||
index d167309..c4cdd93 100644
|
||||
--- a/include/support/win32/locale_win32.h
|
||||
+++ b/include/support/win32/locale_win32.h
|
||||
@@ -64,10 +64,6 @@ isupper_l(int c, _locale_t loc)
|
||||
return _isupper_l((int)c, loc);
|
||||
}
|
||||
|
||||
-#define open _open
|
||||
-#define close _close
|
||||
-#define read _read
|
||||
-
|
||||
#define strtod_l _strtod_l
|
||||
|
||||
// TODO: add _strtof_l to mingw-w64
|
||||
@@ -104,6 +100,7 @@ int vasprintf_l( char **ret, locale_t loc, const char *format, va_list ap );
|
||||
|
||||
#ifdef __MINGW32__
|
||||
|
||||
+#if 0
|
||||
// Stubs
|
||||
inline _locale_t _get_current_locale(void) {
|
||||
return NULL;
|
||||
@@ -120,6 +117,7 @@ inline _locale_t _free_locale(_locale_t _Locale) {
|
||||
return loc;
|
||||
}
|
||||
|
||||
+#endif
|
||||
|
||||
#include <time.h>
|
||||
|
||||
diff --git a/src/new.cpp b/src/new.cpp
|
||||
index f4f73d8..62222e1 100644
|
||||
--- a/src/new.cpp
|
||||
+++ b/src/new.cpp
|
||||
@@ -31,7 +31,7 @@
|
||||
#endif // _LIBCPPABI_VERSION
|
||||
#endif
|
||||
|
||||
-#ifndef __GLIBCXX__
|
||||
+#if 0
|
||||
|
||||
// Implement all new and delete operators as weak definitions
|
||||
// in this shared library, so that they can be overridden by programs
|
||||
--
|
||||
2.7.4
|
||||
|
||||
Reference in new issue
Block a user