Skip to content

Commit

Permalink
make examples stop threadsafe tests when OMP=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
ahbarnett committed Aug 2, 2024
1 parent 1cfeeb2 commit f0aaf71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ endif

# examples (C++/C) -----------------------------------------------------------
# build all examples (single-prec codes separate, and not all have one)...
EXAMPLES = $(basename $(wildcard examples/*.c examples/*.cpp))
EXAMPLES := $(basename $(wildcard examples/*.c examples/*.cpp))
ifeq ($(OMP),OFF)
EXAMPLES := $(filter-out $(basename $(wildcard examples/*thread*.cpp)),$(EXAMPLES))
endif
examples: $(EXAMPLES)
ifneq ($(MINGW),ON)
# Windows-MSYS does not find the dynamic libraries, so we make a temporary copy
Expand Down

0 comments on commit f0aaf71

Please sign in to comment.