summaryrefslogtreecommitdiffstats
path: root/third_party/mesa/mesa.gyp
diff options
context:
space:
mode:
authorglider <glider@chromium.org>2014-10-23 18:41:31 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-24 01:42:12 +0000
commitcecc83e5fc030de7b1d655fa1e676270781149e2 (patch)
tree5f8f9ec89f74aba2b5f8b83bba1e0098a91ae380 /third_party/mesa/mesa.gyp
parentc45241262e301c993a52568e40def261084ed2cb (diff)
downloadchromium_src-cecc83e5fc030de7b1d655fa1e676270781149e2.zip
chromium_src-cecc83e5fc030de7b1d655fa1e676270781149e2.tar.gz
chromium_src-cecc83e5fc030de7b1d655fa1e676270781149e2.tar.bz2
Disable optimization for libmesa and libgl under UBSan to work around issue 426271
BUG=426271 R=piman@chromium.org Review URL: https://codereview.chromium.org/676823002 Cr-Commit-Position: refs/heads/master@{#301020}
Diffstat (limited to 'third_party/mesa/mesa.gyp')
-rw-r--r--third_party/mesa/mesa.gyp8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp
index bc115e1..6ccbb2a 100644
--- a/third_party/mesa/mesa.gyp
+++ b/third_party/mesa/mesa.gyp
@@ -657,6 +657,14 @@
'_GLAPI_NO_EXPORTS',
],
}],
+ ['ubsan==1', {
+ # Due to a bug in LLVM (http://llvm.org/bugs/show_bug.cgi?id=21349),
+ # compilation hangs for some Mesa source files. Disable -O2
+ # temporarily until http://crbug.com/426271 is fixed.
+ 'cflags!': [
+ '-O2',
+ ],
+ }],
],
},
# Building this target will hide the native OpenGL shared library and