From c22413939b7820a5203ad0d6ad79f4263012d35b Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 21 Apr 2024 13:50:53 +0300 Subject: [PATCH] Fix null usage on windows --- make/tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make/tests b/make/tests index 6eff2a94d7..2cf99e2317 100644 --- a/make/tests +++ b/make/tests @@ -85,12 +85,15 @@ HEADER_TESTS := $(addsuffix -test,$(call findfiles,src/stan,*.hpp)) ifeq ($(OS),Windows_NT) DEV_NULL = nul + ifeq ($(IS_UCRT),true) + UCRT_NULL_FLAG = -S + endif else DEV_NULL = /dev/null endif %.hpp-test : %.hpp test/dummy.cpp - $(COMPILE.cpp) -O0 -include $^ -o $(DEV_NULL) + $(COMPILE.cpp) -O0 -include $^ $(UCRT_NULL_FLAG) -o $(DEV_NULL) test/dummy.cpp: @mkdir -p test