summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
Diffstat (limited to 'recipes')
-rw-r--r--recipes/libvpx.recipe4
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