diff --git a/ext/libv8/patcher.rb b/ext/libv8/patcher.rb index 6f555d82..4e8e85a6 100644 --- a/ext/libv8/patcher.rb +++ b/ext/libv8/patcher.rb @@ -19,6 +19,7 @@ def patch_directories_for(compiler) patch_directories << 'clang' patch_directories << 'clang33' if compiler.version >= '3.3' patch_directories << 'clang51' if compiler.version >= '5.1' + patch_directories << 'clang70' if compiler.version >= '7.0' end patch_directories diff --git a/patches/clang70/no-unused-local-typedefs.patch b/patches/clang70/no-unused-local-typedefs.patch new file mode 100644 index 00000000..18f0144c --- /dev/null +++ b/patches/clang70/no-unused-local-typedefs.patch @@ -0,0 +1,13 @@ +diff --git a/build/standalone.gypi b/build/standalone.gypi +index 125c5bf..a283a28 100644 +--- a/build/standalone.gypi ++++ b/build/standalone.gypi +@@ -211,6 +212,8 @@ + '-W', + '-Wno-unused-parameter', + '-Wno-unused-variable', ++ '-Wno-unused-local-typedefs', ++ '-Wno-tautological-undefined-compare', + '-Wnon-virtual-dtor', + ], + },