diff options
author | Edward Hervey <bilboed@bilboed.com> | 2015-10-02 15:20:06 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-10-02 15:20:06 +0200 |
commit | 91f656f0fef162417a9930df9ac2235aa5e27005 (patch) | |
tree | f862fb2a56865441220efda4fe475f125481b4b7 | |
parent | 02866ec37764935990e7bbf070d21dabaf9179b2 (diff) |
recipes/pixman: Workaround known bug in Xcode clang
More details here : https://github.com/Homebrew/homebrew/issues/41056
We don't really care about MMX, more targets will have better
alternatives anyway (SSE, ...).
-rw-r--r-- | recipes/pixman.recipe | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/pixman.recipe b/recipes/pixman.recipe index e637faca..2a14a909 100644 --- a/recipes/pixman.recipe +++ b/recipes/pixman.recipe @@ -17,6 +17,11 @@ class Recipe(recipe.Recipe): files_devel = ['include/pixman-1', 'lib/pkgconfig/pixman-1.pc'] def prepare(self): + # clang from xcode has a known bug, avoid codepath that trigger it + # More info : https://github.com/Homebrew/homebrew/issues/41056 + if self.config.target_platform in [ Platform.DARWIN, Platform.IOS ] and \ + self.config.target_arch in [ Architecture.X86, Architecture.X86_64 ]: + self.configure_options = '--disable-mmx' if self.config.target_platform == Platform.ANDROID: # FIXME: Fails to link because of undefined __builtin_* symbols self.configure_options = '--disable-arm-iwmmxt' |