mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
Add --disable-pch configuration option.
This commit is contained in:
parent
31f4d0d699
commit
02119375b1
2 changed files with 16 additions and 0 deletions
14
configure.ac
14
configure.ac
|
@ -190,6 +190,19 @@ AC_ARG_ENABLE(profile, AC_HELP_STRING([--enable-profile], [Enable profiling]),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if you want to disable precompiled headers)
|
||||||
|
AC_ARG_ENABLE(pch, AC_HELP_STRING([--disable-pch], [Disable precompiled header generation]),
|
||||||
|
[
|
||||||
|
build_pch="no"
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
], [
|
||||||
|
build_pch="yes"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([BUILD_PCH], [[[[ "$build_pch" = "yes" ]]]])
|
||||||
|
|
||||||
|
|
||||||
CWARNS=""
|
CWARNS=""
|
||||||
AC_MSG_CHECKING(if you want to disable warnings)
|
AC_MSG_CHECKING(if you want to disable warnings)
|
||||||
AC_ARG_ENABLE(warnings,
|
AC_ARG_ENABLE(warnings,
|
||||||
|
@ -1247,6 +1260,7 @@ echo "Compiler .......................... $CXX"
|
||||||
echo "Compiler flags (CXXFLAGS) ......... $CXXFLAGS"
|
echo "Compiler flags (CXXFLAGS) ......... $CXXFLAGS"
|
||||||
echo "Building boost .................... $with_included_boost"
|
echo "Building boost .................... $with_included_boost"
|
||||||
echo "Building libltdl .................. $with_included_ltdl"
|
echo "Building libltdl .................. $with_included_ltdl"
|
||||||
|
echo "Precompiled headers ............... $build_pch"
|
||||||
echo "Developer debug ................... $debug"
|
echo "Developer debug ................... $debug"
|
||||||
echo "IPv6 support ...................... $ipv6"
|
echo "IPv6 support ...................... $ipv6"
|
||||||
echo "SSL type........................... $SSL_TYPE"
|
echo "SSL type........................... $SSL_TYPE"
|
||||||
|
|
|
@ -6,7 +6,9 @@ if GCC
|
||||||
AM_CXXFLAGS = -fpch-deps
|
AM_CXXFLAGS = -fpch-deps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if BUILD_PCH
|
||||||
BUILT_SOURCES = rb.h.gch
|
BUILT_SOURCES = rb.h.gch
|
||||||
|
endif
|
||||||
|
|
||||||
rb.h.gch:
|
rb.h.gch:
|
||||||
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o rb.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) rb.h
|
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o rb.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) rb.h
|
||||||
|
|
Loading…
Reference in a new issue