Index: ui/gl/gl.gyp |
diff --git a/ui/gl/gl.gyp b/ui/gl/gl.gyp |
index f3be5b26472768cd3d54652f62aca66a5c075402..fdd227abb69b7514db7d5a1e87fa0e07f03ffb17 100644 |
--- a/ui/gl/gl.gyp |
+++ b/ui/gl/gl.gyp |
@@ -311,6 +311,14 @@ |
'../android/ui_android.gyp:ui_java', |
], |
}], |
+ ['ubsan==1', { |
+ # Due to a bug in LLVM (http://llvm.org/bugs/show_bug.cgi?id=21349), |
+ # compilation hangs for some GL source files. Disable -O2 temporarily |
+ # until http://crbug.com/426271 is fixed. |
+ 'cflags!': [ |
+ '-O2', |
+ ], |
+ }], |
], |
}, |
{ |