Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 4020ad9

Browse files
committed
Posix tests (require -std=c++17)
1 parent 9224640 commit 4020ad9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/stdcpp/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ all:
1212
clean:
1313

1414
else
15-
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))
15+
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS))) $(ROOT)/string_view
1616

1717
$(ROOT)/%.done : $(ROOT)/%
1818
@echo Testing $*
@@ -24,6 +24,11 @@ $(ROOT)/%: $(SRC)/%_test.d $(SRC)/%.cpp
2424
$(QUIET)$(CXX) $(CXXFLAGS) -c -o $(ROOT)/$*_cpp.o $(SRC)/$*.cpp
2525
$(QUIET)$(DMD) $(DFLAGS) -main -unittest -of$@ $< $(ROOT)/$*_cpp.o
2626

27+
$(ROOT)/string_view: $(SRC)/string_view_test.d $(SRC)/string_view.cpp
28+
mkdir -p $(dir $@)
29+
$(QUIET)$(CXX) $(CXXFLAGS) -std=c++17 -c -o $(ROOT)/string_view_cpp.o $(SRC)/string_view.cpp
30+
$(QUIET)$(DMD) $(DFLAGS) -main -unittest -of$@ $< $(ROOT)/string_view_cpp.o
31+
2732
clean:
2833
rm -rf $(GENERATED)
2934
endif

0 commit comments

Comments
 (0)