diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-09-25 06:39:49 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-09-26 17:08:17 +0000 |
commit | e25e0eb69d80669fdb676f08f8b5222e91979c41 (patch) | |
tree | 8bacc07ea55a44e4c0294d2a2bdd500b37e6185c | |
parent | d367eea323780a92a1580138dca4be6898f8f33c (diff) |
libvpx.recipe: Fix build with Visual Studio 20191.16.1
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
-rw-r--r-- | recipes/libvpx.recipe | 4 |
1 files changed, 4 insertions, 0 deletions
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 |