summaryrefslogtreecommitdiffstats
path: root/build/flags/pthread.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-11-23 15:02:27 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-11-23 15:03:39 -0500
commitff449fd9b74aa88fba58530de5aaf376f3d16510 (patch)
treeb9ac5dcdc28e48ba05b65c3c2bb681a62c021331 /build/flags/pthread.c
parentdb6dfa79732b4ab227329dd435a99067e357774a (diff)
downloadbfs-ff449fd9b74aa88fba58530de5aaf376f3d16510.tar.xz
build: Check for -pthread before using it
QNX's qcc, for example, will complain that cc1: error: command-line option '-pthread' is valid for the driver but not for C
Diffstat (limited to 'build/flags/pthread.c')
-rw-r--r--build/flags/pthread.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/flags/pthread.c b/build/flags/pthread.c
new file mode 100644
index 0000000..db09aa4
--- /dev/null
+++ b/build/flags/pthread.c
@@ -0,0 +1,8 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+/// _CFLAGS += -pthread
+
+int main(void) {
+ return 0;
+}