From 51556b295df0fda310c2277baa38bf0104e924c8 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Wed, 30 Oct 2024 09:40:05 -0300 Subject: cerbero: Don't enable MinGW variant by default for non-Windows-hosted builds Part-of: --- cerbero/config.py | 7 ++----- config/cross-win32.cbc | 3 +++ config/cross-win64.cbc | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cerbero/config.py b/cerbero/config.py index 74dde0f0..726216a2 100644 --- a/cerbero/config.py +++ b/cerbero/config.py @@ -365,11 +365,8 @@ class Config(object): self.load_defaults() # Use Visual Studio by default when building on Windows - if not self.variants.mingw and not self.variants.visualstudio: - if self.platform == Platform.WINDOWS: - self.variants.override(['visualstudio']) - else: - self.variants.override(['mingw']) + if not self.variants.mingw and not self.variants.visualstudio and self.platform == Platform.WINDOWS: + self.variants.override(['visualstudio']) # Next parse the user configuration file USER_CONFIG_FILE # which overrides the defaults diff --git a/config/cross-win32.cbc b/config/cross-win32.cbc index e1631006..0facc478 100644 --- a/config/cross-win32.cbc +++ b/config/cross-win32.cbc @@ -6,3 +6,6 @@ target_arch=Architecture.X86 target_distro=Distro.WINDOWS target_distro_version=DistroVersion.WINDOWS_7 build = 'x86_64-linux-gnu' + +# Needs GCC with DWARF2 +variants.override(['norust', 'mingw']) diff --git a/config/cross-win64.cbc b/config/cross-win64.cbc index a31b0a1f..c82d8ff7 100644 --- a/config/cross-win64.cbc +++ b/config/cross-win64.cbc @@ -6,3 +6,5 @@ target_arch=Architecture.X86_64 target_distro=Distro.WINDOWS target_distro_version=DistroVersion.WINDOWS_7 build = 'x86_64-linux-gnu' + +variants.override(['mingw']) -- cgit v1.2.3