diff options
author | Dan Gudmundsson <[email protected]> | 2019-05-28 14:42:38 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2019-05-29 12:57:30 +0200 |
commit | a6a9a16dbf1ad5eb49b4f72a8073def5e0566485 (patch) | |
tree | 3d7e43e63c8e6585696e36de25ca36758347aa00 /lib/wx/configure.in | |
parent | 0991c866f7420f2fc211404162e67b45f0174447 (diff) | |
download | otp-a6a9a16dbf1ad5eb49b4f72a8073def5e0566485.tar.gz otp-a6a9a16dbf1ad5eb49b4f72a8073def5e0566485.tar.bz2 otp-a6a9a16dbf1ad5eb49b4f72a8073def5e0566485.zip |
Speed up compilation
Decreases compilation time without reducing performance.
Diffstat (limited to 'lib/wx/configure.in')
-rw-r--r-- | lib/wx/configure.in | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/wx/configure.in b/lib/wx/configure.in index 60f0a52ef3..f35e6cdbd0 100644 --- a/lib/wx/configure.in +++ b/lib/wx/configure.in @@ -229,11 +229,21 @@ case $host_os in ;; *) DEBUG_CFLAGS="-g -Wall -fPIC $CFLAGS -DDEBUG" - CFLAGS="-g -Wall -O2 -fPIC $CFLAGS -fomit-frame-pointer -fno-strict-aliasing" + CFLAGS="-Wall -fPIC $CFLAGS -fomit-frame-pointer -fno-strict-aliasing" ;; esac -dnl +dnl +dnl Use -O1 -fno-move-loop-invariants for wxe_funcs.cpp to reduce +dnl compilation time +dnl + +if test "x$GCC" = xyes -a X"$host_os" != X"win32" ; then + CXXNOOPT="-O1" + LM_TRY_ENABLE_CFLAG([-fno-move-loop-invariants], [CXXNOOPT]) +fi + +dnl dnl Opengl tests dnl @@ -288,13 +298,13 @@ AC_SUBST(GL_LIBS) DEBUG_CXXFLAGS="$CXXFLAGS $DEBUG_CFLAGS $CPPFLAGS" DEBUG_CFLAGS="$DEBUG_CFLAGS $CPPFLAGS $C_ONLY_FLAGS" -CXXFLAGS="$CXXFLAGS $CFLAGS $CPPFLAGS" +CXXNOOPTFLAGS="$CXXFLAGS $CFLAGS $CPPFLAGS $CXXNOOPT" +CXXFLAGS="$CXXFLAGS $CFLAGS $CPPFLAGS" CFLAGS="$CFLAGS $CPPFLAGS $C_ONLY_FLAGS" AC_SUBST(DEBUG_CFLAGS) AC_SUBST(DEBUG_CXXFLAGS) - ERLC=erlc ERL=erl ERLANG_ROOT_DIR=$ERL_TOP @@ -691,6 +701,7 @@ esac AC_SUBST(SO_EXT) AC_SUBST(RUN_ERL) +AC_SUBST(CXXNOOPTFLAGS) if test X"$WX_BUILDING_INSIDE_ERLSRC" != X"true" ; then |