Skip to content

Commit dfe460d

Browse files
committed
Only add flag for UCRT
1 parent 061f69c commit dfe460d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

make/tests

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,15 @@ HEADER_TESTS := $(addsuffix -test,$(call findfiles,stan,*.hpp))
101101

102102
ifeq ($(OS),Windows_NT)
103103
DEV_NULL = nul
104+
ifeq ($(IS_UCRT),true)
105+
UCRT_NULL_FLAG = -S
106+
endif
104107
else
105108
DEV_NULL = /dev/null
106109
endif
107110

108111
%.hpp-test : %.hpp test/dummy.cpp
109-
$(COMPILE.cpp) $(CXXFLAGS) -O0 -include $^ -S -o $(DEV_NULL) -Wunused-local-typedefs
112+
$(COMPILE.cpp) $(CXXFLAGS) -O0 -include $^ $(UCRT_NULL_FLAG) -o $(DEV_NULL) -Wunused-local-typedefs
110113

111114
test/dummy.cpp:
112115
@mkdir -p test

0 commit comments

Comments
 (0)