summaryrefslogtreecommitdiff
path: root/modules/fdlibm/src/moz.build
diff options
context:
space:
mode:
Diffstat (limited to 'modules/fdlibm/src/moz.build')
-rw-r--r--modules/fdlibm/src/moz.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/fdlibm/src/moz.build b/modules/fdlibm/src/moz.build
index 541f840399..d1feeb62f9 100644
--- a/modules/fdlibm/src/moz.build
+++ b/modules/fdlibm/src/moz.build
@@ -38,6 +38,12 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
'-Wno-sign-compare', # signed/unsigned mismatch
]
+# Explicitly enable WPO and LTCG in MSVC if we're doing LTO.
+if CONFIG['JS_LTO']:
+ if CONFIG['_MSC_VER'] and not CONFIG['CLANG_CL']:
+ CFLAGS += [ '-GL' ]
+ CXXFLAGS += [ '-GL' ]
+
SOURCES += [
'e_acos.cpp',
'e_acosh.cpp',