summaryrefslogtreecommitdiffstats
path: root/build/deps.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-07-27 19:01:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-07-27 19:01:18 -0400
commit3552b793e3b30f2bba0e77fbda45a86575f4dae6 (patch)
tree1d42f3b79cde76874dcddb948c5c733e6b4bdcbb /build/deps.mk
parentbd8a345bed6b00f40547de44a1f76be2796f11be (diff)
downloadbfs-3552b793e3b30f2bba0e77fbda45a86575f4dae6.tar.xz
build/flags: Infrastructure to detect compiler flag support
Use it to detect -MD -MP support.
Diffstat (limited to 'build/deps.mk')
-rw-r--r--build/deps.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/build/deps.mk b/build/deps.mk
index a6ea673..b49e592 100644
--- a/build/deps.mk
+++ b/build/deps.mk
@@ -11,8 +11,5 @@ include build/exports.mk
gen/deps.mk::
${MSG} "[ GEN] $@"
@printf '# %s\n' "$@" >$@
- @if build/cc.sh -MD -MP build/empty.c -o gen/.deps.out; then \
- printf '_CPPFLAGS += -MD -MP\n'; \
- fi >>$@ 2>$@.log
- ${VCAT} $@
@printf -- '-include %s\n' ${OBJS:.o=.d} >>$@
+ ${VCAT} $@