summaryrefslogtreecommitdiffstats
path: root/build/flags
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/flags
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/flags')
-rw-r--r--build/flags/deps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/flags/deps.c b/build/flags/deps.c
new file mode 100644
index 0000000..1c8c309
--- /dev/null
+++ b/build/flags/deps.c
@@ -0,0 +1,8 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+/// _CPPFLAGS += -MD -MP
+
+int main(void) {
+ return 0;
+}