summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-08-19 07:16:29 +0000
committerMoonchild <moonchild@palemoon.org>2020-08-19 07:16:29 +0000
commit1b14edc01b2e65f8c93f0719309662b098e7131d (patch)
treebd9dac1d267b3aecf614c4c9a6bb0c5ebf12c888 /js
parent46595e390555adf63a6d2e6c6476c4bdd2172cf2 (diff)
downloaduxp-1b14edc01b2e65f8c93f0719309662b098e7131d.tar.gz
[js] Reinstate precise floating point model for all js sources.
Diffstat (limited to 'js')
-rw-r--r--js/src/moz.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/moz.build b/js/src/moz.build
index c0cef9929b..3e6402f71e 100644
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -687,8 +687,8 @@ if CONFIG['_MSC_VER']:
elif CONFIG['CPU_ARCH'] == 'x86_64' and CONFIG['JS_HAS_CTYPES']:
SOURCES['ctypes/CTypes.cpp'].no_pgo = True # Bug 810661
# Prevent floating point errors caused by VC++ optimizations
- # XXX We should add this to CXXFLAGS, too?
CFLAGS += ['-fp:precise']
+ CXXFLAGS += ['-fp:precise']
# C4805 warns mixing bool with other integral types in computation.
# But given the conversion from bool is specified, and this is a
# pattern widely used in code in js/src, suppress this warning here.