From 0949d1c7d0ca7e4d9bdc612f6c7d6c0ba993cbf6 Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Tue, 7 Jun 2016 19:55:26 +0900 Subject: [PATCH] Bug 1220525 - Add -Zc:inline for MSVC build. r=ted -Zc:inliune introduces VS2013 update 2 to reduce build time. https://blogs.msdn.microsoft.com/vcblog/2014/11/12/speeding-up-the-incremental-developer-build-scenario/ On my workstation (i7-3770, 4 cores 8 threads), the build time by clean build (--enable-optimize and --disable-debug) is the following. With -Zc:inline ... 39m44s Without -Zc:inlune ... 43m52s So we should use this option to improve build time. MozReview-Commit-ID: GHUdgXBBYei --HG-- extra : rebase_source : 7972e50b188681a09e087a00f023fe5202271ba2 extra : histedit_source : 16f33b48e688ca6f275d8105438abd2b450b4aa7 --- js/src/old-configure.in | 4 ++-- old-configure.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/old-configure.in b/js/src/old-configure.in index b413de302fd5..da649d4bb76c 100644 --- a/js/src/old-configure.in +++ b/js/src/old-configure.in @@ -959,8 +959,8 @@ case "$target" in _USE_CPP_INCLUDE_FLAG=1 _DEFINES_CFLAGS='-FI $(topobjdir)/js/src/js-confdefs.h -DMOZILLA_CLIENT' _DEFINES_CXXFLAGS='-FI $(topobjdir)/js/src/js-confdefs.h -DMOZILLA_CLIENT' - CFLAGS="$CFLAGS -W3 -Gy" - CXXFLAGS="$CXXFLAGS -W3 -Gy" + CFLAGS="$CFLAGS -W3 -Gy -Zc:inline" + CXXFLAGS="$CXXFLAGS -W3 -Gy -Zc:inline" if test "$CPU_ARCH" = "x86";then dnl VS2012+ defaults to -arch:SSE2. We want to target nothing dnl more recent, so set that explicitly here unless another diff --git a/old-configure.in b/old-configure.in index fc0b345969e5..8e0484f18014 100644 --- a/old-configure.in +++ b/old-configure.in @@ -1370,8 +1370,8 @@ case "$target" in _USE_CPP_INCLUDE_FLAG=1 _DEFINES_CFLAGS='-FI $(topobjdir)/mozilla-config.h -DMOZILLA_CLIENT' _DEFINES_CXXFLAGS='-FI $(topobjdir)/mozilla-config.h -DMOZILLA_CLIENT' - CFLAGS="$CFLAGS -W3 -Gy" - CXXFLAGS="$CXXFLAGS -W3 -Gy" + CFLAGS="$CFLAGS -W3 -Gy -Zc:inline" + CXXFLAGS="$CXXFLAGS -W3 -Gy -Zc:inline" if test "$CPU_ARCH" = "x86"; then dnl VS2012+ defaults to -arch:SSE2. We want to target nothing dnl more recent, so set that explicitly here unless another