diff --git a/ext/libv8/patcher.rb b/ext/libv8/patcher.rb index 001eed0..fee1c3e 100644 --- a/ext/libv8/patcher.rb +++ b/ext/libv8/patcher.rb @@ -18,6 +18,7 @@ module Libv8 when Compiler::Clang patch_directories << 'clang' patch_directories << 'clang33' if compiler.version >= '3.3' + patch_directories << 'clang51' if compiler.version >= '5.1' end patch_directories diff --git a/patches/clang51/no-unused-variable.patch b/patches/clang51/no-unused-variable.patch new file mode 100644 index 0000000..3b39349 --- /dev/null +++ b/patches/clang51/no-unused-variable.patch @@ -0,0 +1,12 @@ +diff --git a/build/standalone.gypi b/build/standalone.gypi +index 125c5bf..a283a28 100644 +--- a/build/standalone.gypi ++++ b/build/standalone.gypi +@@ -210,6 +212,7 @@ + '-Wendif-labels', + '-W', + '-Wno-unused-parameter', ++ '-Wno-unused-variable', + '-Wnon-virtual-dtor', + ], + },