mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
configure: Hoist some flags out of include/ircd/Makefile.
This commit is contained in:
parent
216a2b64cb
commit
27f1ecd6cd
2 changed files with 19 additions and 12 deletions
19
configure.ac
19
configure.ac
|
@ -749,6 +749,25 @@ AM_COND_IF([DEBUG],
|
|||
])
|
||||
])
|
||||
|
||||
AM_COND_IF([BUILD_PCH],
|
||||
[
|
||||
AM_COND_IF([GCC],
|
||||
[
|
||||
RB_VAR_PREPEND([CXXFLAGS], ["-fpch-deps"])
|
||||
])
|
||||
|
||||
AM_COND_IF([CLANG],
|
||||
[
|
||||
RB_VAR_PREPEND([CPPFLAGS], ["-fpch-preprocess"])
|
||||
RB_VAR_PREPEND([CXXFLAGS], ["-Xclang -verify-pch"])
|
||||
])
|
||||
|
||||
AM_COND_IF([CLANG10],
|
||||
[
|
||||
RB_VAR_PREPEND([CXXFLAGS], ["-fpch-validate-input-files-content"])
|
||||
])
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl Runtime intrumentation
|
||||
dnl
|
||||
|
|
|
@ -6,18 +6,6 @@ AM_CPPFLAGS += -I$(top_srcdir)/include
|
|||
AM_CXXFLAGS =#
|
||||
AM_CXXFLAGS += -x c++-header
|
||||
|
||||
if GCC
|
||||
AM_CXXFLAGS += -fpch-deps
|
||||
endif
|
||||
|
||||
if CLANG
|
||||
AM_CPPFLAGS += -fpch-preprocess
|
||||
endif
|
||||
|
||||
if CLANG10
|
||||
AM_CXXFLAGS += -fpch-validate-input-files-content
|
||||
endif
|
||||
|
||||
if CLANG11
|
||||
AM_CXXFLAGS += -fpch-instantiate-templates
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue