melonDS: use better upstream patch
This commit is contained in:
parent
56f828a89e
commit
bf1e9ec29d
3 changed files with 29 additions and 9 deletions
28
srcpkgs/melonDS/patches/align-test-case-i686.patch
Normal file
28
srcpkgs/melonDS/patches/align-test-case-i686.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
https://github.com/wwylele/teakra/commit/5862fd000353b8086b5be799c0a7f3ee1b2fe971.patch
|
||||
|
||||
From 5862fd000353b8086b5be799c0a7f3ee1b2fe971 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Beich <jbeich@FreeBSD.org>
|
||||
Date: Mon, 14 Jan 2019 22:21:41 +0000
|
||||
Subject: [PATCH] Align TestCase on 32-bit x86
|
||||
|
||||
src/test.h:37:1: fatal error: static_assert failed
|
||||
static_assert(sizeof(TestCase) == 4312);
|
||||
^ ~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
---
|
||||
src/test.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/teakra/src/test.h b/src/teakra/src/test.h
|
||||
index e8c8742..869f8d2 100644
|
||||
--- a/src/teakra/src/test.h
|
||||
+++ b/src/teakra/src/test.h
|
||||
@@ -29,7 +29,7 @@ struct State {
|
||||
|
||||
static_assert(std::is_trivially_copyable_v<State>);
|
||||
|
||||
-struct TestCase {
|
||||
+struct alignas(8) TestCase {
|
||||
State before, after;
|
||||
u16 opcode, expand;
|
||||
};
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
--- a/src/teakra/src/test.h
|
||||
+++ b/src/teakra/src/test.h
|
||||
@@ -34,5 +34,4 @@
|
||||
u16 opcode, expand;
|
||||
};
|
||||
|
||||
-static_assert(sizeof(TestCase) == 4312);
|
||||
static_assert(std::is_trivially_copyable_v<TestCase>);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'melonDS'
|
||||
pkgname=melonDS
|
||||
version=0.9.3
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
|
||||
makedepends="qt5-devel libslirp-devel SDL2-devel libepoxy-devel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue