0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

configure: Hoist some flags out of include/ircd/Makefile.

This commit is contained in:
Jason Volk 2022-07-19 11:54:28 -07:00
parent 216a2b64cb
commit 27f1ecd6cd
2 changed files with 19 additions and 12 deletions

View file

@ -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

View file

@ -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