bug 1249923 - use PogoSafeMode for MSVC PGO. r?gps
MozReview-Commit-ID: 4CMiqba5NZd
--- a/configure.in
+++ b/configure.in
@@ -2195,17 +2195,17 @@ ia64*-hpux*)
if test -n "$MOZ_PARALLEL_BUILD"; then
dnl This argument has a max value of 8.
if test $MOZ_PARALLEL_BUILD -gt 8; then
cgthreads="-CGTHREADS8"
else
cgthreads="-CGTHREADS${MOZ_PARALLEL_BUILD}"
fi
fi
- PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT $cgthreads"
+ PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT -PogoSafeMode $cgthreads"
dnl XXX: PGO builds can fail with warnings treated as errors,
dnl specifically "no profile data available" appears to be
dnl treated as an error sometimes. This might be a consequence
dnl of using WARNINGS_AS_ERRORS in some modules, combined
dnl with the linker doing most of the work in the whole-program
dnl optimization/PGO case. I think it's probably a compiler bug,
dnl but we work around it here.
PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"