-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update LLVM to 10.0.0. - Update MinGW-w64 to the latest master version for the LLVM builds. - Build Rust within MXE instead of using the Rust Docker image. - Do not compile binaries with -ffast-math.
- Loading branch information
Showing
40 changed files
with
1,774 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. | |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Bryce Harrington <[email protected]> | ||
Date: Sun, 3 Mar 2019 00:01:34 -0800 | ||
Subject: [PATCH 1/3] Revert "clip-boxes: Drop too-early return" | ||
Subject: [PATCH 1/4] Revert "clip-boxes: Drop too-early return" | ||
|
||
This reverts commit cb871c6c692af68d8e0bf9e26472af45435f8a2c. | ||
|
||
|
@@ -30,7 +30,7 @@ index 1111111..2222222 100644 | |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Mon, 25 Nov 2019 15:30:00 +0100 | ||
Subject: [PATCH 2/3] Remove -D_FORTIFY_SOURCE=2 flag | ||
Subject: [PATCH 2/4] Remove -D_FORTIFY_SOURCE=2 flag | ||
|
||
See: | ||
https://github.com/msys2/MINGW-packages/issues/5803 | ||
|
@@ -54,7 +54,7 @@ index 1111111..2222222 100644 | |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Wed, 12 Feb 2020 20:00:00 +0100 | ||
Subject: [PATCH 3/3] Always define _cairo_utf8_to_utf16 on Windows | ||
Subject: [PATCH 3/4] Always define _cairo_utf8_to_utf16 on Windows | ||
|
||
_cairo_utf8_to_utf16 is used by _cairo_fopen on Windows so it must | ||
be defined even if Win32 fonts or other features are disabled. | ||
|
@@ -72,3 +72,23 @@ index 1111111..2222222 100644 | |
# define CAIRO_HAS_UTF8_TO_UTF16 1 | ||
#endif | ||
#if CAIRO_HAS_UTF8_TO_UTF16 | ||
|
||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Fri, 20 Mar 2020 13:00:00 +0100 | ||
Subject: [PATCH 4/4] Avoid mapping platform-specific functions on MinGW | ||
|
||
|
||
diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h | ||
index 1111111..2222222 100644 | ||
--- a/src/cairo-compiler-private.h | ||
+++ b/src/cairo-compiler-private.h | ||
@@ -195,7 +195,7 @@ | ||
#define __attribute__(x) | ||
#endif | ||
|
||
-#if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER) | ||
+#if (defined(__WIN32__) && !defined(__WINE__) && !defined(__MINGW32__)) || defined(_MSC_VER) | ||
#define access _access | ||
#define fdopen _fdopen | ||
#define hypot _hypot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
This file is part of MXE. See LICENSE.md for licensing information. | ||
|
||
Contains ad hoc patches for cross building. | ||
|
||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Kleis Auke Wolthuizen <[email protected]> | ||
Date: Sun, 16 Feb 2020 19:20:00 +0100 | ||
Subject: [PATCH 1/1] Fixes for the llvm-mingw ARM/ARM64 build | ||
|
||
|
||
diff --git a/threads/threads.c b/threads/threads.c | ||
index 1111111..2222222 100644 | ||
--- a/threads/threads.c | ||
+++ b/threads/threads.c | ||
@@ -236,7 +236,15 @@ typedef volatile LONG os_static_mutex_t; | ||
static void os_static_mutex_lock(os_static_mutex_t *s) | ||
{ | ||
while (InterlockedExchange(s, 1) == 1) { | ||
+#if defined(_MSC_VER) | ||
YieldProcessor(); | ||
+#elif defined(__i386__) || defined(__x86_64__) | ||
+ __asm__ __volatile__("pause"); | ||
+#elif defined(__ia64__) || defined(__ia64) | ||
+ __asm__ __volatile__ ("hint @pause"); | ||
+#elif defined(__arm__) || defined(__aarch64__) | ||
+ __asm__ __volatile__ ("yield"); | ||
+#endif | ||
Sleep(0); | ||
} | ||
} |
Oops, something went wrong.