Skip to content

Commit ebb78fc

Browse files
committed
build: Fix warning from inconsistency in gnu make
Make changed the interpretation of escaped # in a quote causing warnings in the test for pthreads. Change-Id: Ice94116713aea3c3e9725b38232e03f53d6633cc Signed-off-by: Greg Tucker <[email protected]>
1 parent bee5180 commit ebb78fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ASFLAGS += -DAS_FEATURE_LEVEL=$(as_feature_level) $(D_HAVE_AS_KNOWS_AVX512_y)
192192

193193

194194
# Check for pthreads
195-
have_threads ?= $(shell printf "\#include <pthread.h>\nint main(void){return 0;}\n" | $(CC) -x c - -o /dev/null -lpthread && echo y )
195+
have_threads ?= $(shell printf "int main(void){return 0;}\n" | $(CC) -x c - -o /dev/null -lpthread && echo y )
196196
THREAD_LD_$(have_threads) := -lpthread
197197
THREAD_CFLAGS_$(have_threads) := -DHAVE_THREADS
198198

0 commit comments

Comments
 (0)