def disableUnsaveMath():
    """
    Disable the fast-math and associative-math flags in the c++ compiler.
    """
    from . import config
    flags = config.cxxflags
    for flag in ('-ffast-math', '-fassociative-math'):
        if flag in flags:
            flags.remove(flag)
