From e25e0eb69d80669fdb676f08f8b5222e91979c41 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 25 Sep 2019 06:39:49 +0530 Subject: libvpx.recipe: Fix build with Visual Studio 2019 libvpx doesn't support building with VS 2019, so we use MinGW instead, but we must also remove MSVC-specific CFLAGS in that case. Fixes: > Unable to invoke compiler: gcc /utf-8 -fno-common -m32 --- recipes/libvpx.recipe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/libvpx.recipe b/recipes/libvpx.recipe index 944af2cd..38b48894 100644 --- a/recipes/libvpx.recipe +++ b/recipes/libvpx.recipe @@ -50,6 +50,10 @@ class Recipe(recipe.Recipe): return False # libvpx supports VS 2015 and VS 2017 if self.config.msvc_version not in ('vs14', 'vs15'): + # If we're not going to be using MSVC, remove its flags + for cflag in self.config.msvc_toolchain_env['CFLAGS']: + if cflag: + self.remove_env('CFLAGS', cflag) return False return True -- cgit v1.2.3