modules/fdlibm/src/moz.build
author Sylvestre Ledru <sledru@mozilla.com>
Thu, 07 Dec 2017 22:09:15 +0100
changeset 447482 5ec58e0e3a347e2504d7544d5d0312a70e8735cd
parent 364648 151ddb5b85a1661a59ed528ccab7e6fe2bbad9de
child 447483 2d15016c5ede81ee2b7a7643469c381f4d787219
permissions -rw-r--r--
Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium MozReview-Commit-ID: 7duJk2gSd4m

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

EXPORTS += [
    'fdlibm.h',
]

FINAL_LIBRARY = 'js'

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
    CXXFLAGS += [
        '-Wno-parentheses',
        '-Wno-sign-compare',
    ]

if CONFIG['CLANG_CXX']:
    CXXFLAGS += [
        '-Wno-dangling-else',
    ]

if CONFIG['_MSC_VER']:
    CXXFLAGS += [
        '-wd4018', # signed/unsigned mismatch
        '-wd4146', # unary minus operator applied to unsigned type
        '-wd4305', # truncation from 'double' to 'const float'
        '-wd4723', # potential divide by 0
        '-wd4756', # overflow in constant arithmetic
    ]

SOURCES += [
    'e_acos.cpp',
    'e_acosh.cpp',
    'e_asin.cpp',
    'e_atan2.cpp',
    'e_atanh.cpp',
    'e_cosh.cpp',
    'e_exp.cpp',
    'e_hypot.cpp',
    'e_log.cpp',
    'e_log10.cpp',
    'e_log2.cpp',
    'e_pow.cpp',
    'e_sinh.cpp',
    'e_sqrt.cpp',
    'k_exp.cpp',
    's_asinh.cpp',
    's_atan.cpp',
    's_cbrt.cpp',
    's_ceil.cpp',
    's_ceilf.cpp',
    's_copysign.cpp',
    's_expm1.cpp',
    's_fabs.cpp',
    's_floor.cpp',
    's_floorf.cpp',
    's_log1p.cpp',
    's_nearbyint.cpp',
    's_rint.cpp',
    's_rintf.cpp',
    's_scalbn.cpp',
    's_tanh.cpp',
    's_trunc.cpp',
    's_truncf.cpp',
]