Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disable optimizations that require strict aliasing

O3 violates strict aliasing rules more often than not.
  • Loading branch information...
commit 7f70eb1836b2d376becf5c6e4430aabeae1706f6 1 parent 62ec146
@piscisaureus piscisaureus authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 wscript
View
4 wscript
@@ -9,8 +9,8 @@ def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
conf.add_os_flags('LDFLAGS','LINKFLAGS')
- conf.env.append_value('CCFLAGS', ['-O3', '-msse2', '-ffast-math'])
- conf.env.append_value('CXXFLAGS', ['-O3', '-msse2', '-ffast-math'])
+ conf.env.append_value('CCFLAGS', ['-O3', '-msse2', '-ffast-math', '-fno-strict-aliasing'])
+ conf.env.append_value('CXXFLAGS', ['-O3', '-msse2', '-ffast-math', '-fno-strict-aliasing'])
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
Please sign in to comment.
Something went wrong with that request. Please try again.