summaryrefslogtreecommitdiffstats
path: root/modules/fdlibm/src/moz.build
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-15 15:17:01 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-15 15:17:01 +0100
commit5e902a4a9a25a9e151b5d3945c68517bc0c73139 (patch)
treea2e314bc193f4bdd52bb45adfc12f2803c265469 /modules/fdlibm/src/moz.build
parent6ca0b4704367f8804e0373cb439e6e17e5146e4a (diff)
downloadUXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.gz
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.lz
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.tar.xz
UXP-5e902a4a9a25a9e151b5d3945c68517bc0c73139.zip
Issue #1291 - Part 3: Update fdlibm to Sept 2019 version
Diffstat (limited to 'modules/fdlibm/src/moz.build')
-rw-r--r--modules/fdlibm/src/moz.build17
1 files changed, 13 insertions, 4 deletions
diff --git a/modules/fdlibm/src/moz.build b/modules/fdlibm/src/moz.build
index cae0e5bc9..be5bf3d9b 100644
--- a/modules/fdlibm/src/moz.build
+++ b/modules/fdlibm/src/moz.build
@@ -10,26 +10,35 @@ EXPORTS += [
FINAL_LIBRARY = 'js'
-if CONFIG['GNU_CXX']:
+if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += [
'-Wno-parentheses',
'-Wno-sign-compare',
]
-if CONFIG['CLANG_CXX']:
+if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-dangling-else',
]
-if CONFIG['_MSC_VER']:
+if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
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
]
+if CONFIG['CC_TYPE'] == 'msvc':
+ CXXFLAGS += [
+ '-wd4018', # signed/unsigned mismatch
+ ]
+
+if CONFIG['CC_TYPE'] == 'clang-cl':
+ CXXFLAGS += [
+ '-Wno-sign-compare', # signed/unsigned mismatch
+ ]
+
SOURCES += [
'e_acos.cpp',
'e_acosh.cpp',