Index: build/jar_file_jni_generator.gypi |
diff --git a/build/jar_file_jni_generator.gypi b/build/jar_file_jni_generator.gypi |
index 4c01c8a02c87da28a4cde94af55e52092e3400c9..9472c10be4035acf85209f60648681147304b0e3 100644 |
--- a/build/jar_file_jni_generator.gypi |
+++ b/build/jar_file_jni_generator.gypi |
@@ -73,5 +73,13 @@ |
'<(DEPTH)/build/android/android_exports.gyp:android_exports', |
], |
}], |
+ ['clang==0', { |
+ # Clang builds currently fail with --native_exports_optional due to |
+ # http://llvm.org/bugs/show_bug.cgi?id=22602 - only enable for gcc. |
+ # http://crbug.com/442327 |
+ 'variables': { |
+ 'native_exports%': '--native_exports_optional', |
+ }, |
+ }], |
], |
} |