1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Turn off strictaliasing warning for GCC < 4.6

This commit is contained in:
Petko Bordjukov 2015-07-05 19:08:29 +03:00
parent 7569d8b278
commit 2a545e9ba0

View file

@ -27,7 +27,7 @@ module Libv8
# FreeBSD uses gcc 4.2 by default which leads to
# compilation failures due to warnings about aliasing.
# http://svnweb.freebsd.org/ports/head/lang/v8/Makefile?view=markup
flags << "strictaliasing=off" if @compiler.is_a?(Compiler::GCC) and @compiler.version < '4.4'
flags << "strictaliasing=off" if @compiler.is_a?(Compiler::GCC) and @compiler.version < '4.6'
# Fix Malformed archive issue caused by GYP creating thin archives by
# default.