1 |
commit: 9905d05f9b9851c11bd2e0922b79df6f5db3033d |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 14 02:04:43 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 14 02:21:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9905d05f |
7 |
|
8 |
app-emulation/dxvk: add bypass for crossdev checks / unset |
9 |
|
10 |
Unset is needed given CC is not expected to be a cross-compiler |
11 |
but, if users know what they are doing, leave a way (MINGW_BYPASS=1). |
12 |
|
13 |
If e.g. llvm-mingw is ever officially supported, may need a mingw |
14 |
eclass to juggle toolchains properly and instruct about them. |
15 |
|
16 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
17 |
|
18 |
app-emulation/dxvk/dxvk-1.10.1.ebuild | 6 +++--- |
19 |
app-emulation/dxvk/dxvk-9999.ebuild | 6 +++--- |
20 |
2 files changed, 6 insertions(+), 6 deletions(-) |
21 |
|
22 |
diff --git a/app-emulation/dxvk/dxvk-1.10.1.ebuild b/app-emulation/dxvk/dxvk-1.10.1.ebuild |
23 |
index d48b3cc7cc2a..7d293dd8f8ea 100644 |
24 |
--- a/app-emulation/dxvk/dxvk-1.10.1.ebuild |
25 |
+++ b/app-emulation/dxvk/dxvk-1.10.1.ebuild |
26 |
@@ -32,7 +32,7 @@ BDEPEND=" |
27 |
pkg_pretend() { |
28 |
[[ ${MERGE_TYPE} == binary ]] && return |
29 |
|
30 |
- if use crossdev-mingw; then |
31 |
+ if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then |
32 |
local tool=-w64-mingw32-g++ |
33 |
for tool in $(usev abi_x86_64 x86_64${tool}) $(usev abi_x86_32 i686${tool}); do |
34 |
if ! type -P ${tool} >/dev/null; then |
35 |
@@ -64,7 +64,7 @@ src_configure() { |
36 |
append-flags -mno-avx |
37 |
|
38 |
if [[ ${CHOST} != *-mingw* ]]; then |
39 |
- unset AR CC CXX RC STRIP # likely unusable unless CHOST is mingw |
40 |
+ [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP |
41 |
|
42 |
CHOST_amd64=x86_64-w64-mingw32 |
43 |
CHOST_x86=i686-w64-mingw32 |
44 |
@@ -79,7 +79,7 @@ src_configure() { |
45 |
multilib_src_configure() { |
46 |
# multilib's ${CHOST_amd64}-gcc -m32 is unusable with crossdev, |
47 |
# unset again so meson eclass will set ${CHOST}-gcc + others |
48 |
- use crossdev-mingw && unset AR CC CXX RC STRIP |
49 |
+ use crossdev-mingw && [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP |
50 |
|
51 |
local emesonargs=( |
52 |
--prefix="${EPREFIX}"/usr/lib/${PN} |
53 |
|
54 |
diff --git a/app-emulation/dxvk/dxvk-9999.ebuild b/app-emulation/dxvk/dxvk-9999.ebuild |
55 |
index d48b3cc7cc2a..7d293dd8f8ea 100644 |
56 |
--- a/app-emulation/dxvk/dxvk-9999.ebuild |
57 |
+++ b/app-emulation/dxvk/dxvk-9999.ebuild |
58 |
@@ -32,7 +32,7 @@ BDEPEND=" |
59 |
pkg_pretend() { |
60 |
[[ ${MERGE_TYPE} == binary ]] && return |
61 |
|
62 |
- if use crossdev-mingw; then |
63 |
+ if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then |
64 |
local tool=-w64-mingw32-g++ |
65 |
for tool in $(usev abi_x86_64 x86_64${tool}) $(usev abi_x86_32 i686${tool}); do |
66 |
if ! type -P ${tool} >/dev/null; then |
67 |
@@ -64,7 +64,7 @@ src_configure() { |
68 |
append-flags -mno-avx |
69 |
|
70 |
if [[ ${CHOST} != *-mingw* ]]; then |
71 |
- unset AR CC CXX RC STRIP # likely unusable unless CHOST is mingw |
72 |
+ [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP |
73 |
|
74 |
CHOST_amd64=x86_64-w64-mingw32 |
75 |
CHOST_x86=i686-w64-mingw32 |
76 |
@@ -79,7 +79,7 @@ src_configure() { |
77 |
multilib_src_configure() { |
78 |
# multilib's ${CHOST_amd64}-gcc -m32 is unusable with crossdev, |
79 |
# unset again so meson eclass will set ${CHOST}-gcc + others |
80 |
- use crossdev-mingw && unset AR CC CXX RC STRIP |
81 |
+ use crossdev-mingw && [[ ! -v MINGW_BYPASS ]] && unset AR CC CXX RC STRIP |
82 |
|
83 |
local emesonargs=( |
84 |
--prefix="${EPREFIX}"/usr/lib/${PN} |