Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ else
endif

# ompTest: Set header include path + linker flag for corresponding OMPT tests
CLANG_VERSION := $(lastword $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(AOMP)/lib/clang/*/))))))
OMPTEST = -I$(AOMP)/lib/clang/$(CLANG_VERSION)/include/omptest -lomptest
CLANG_RESOURCE_DIR := $(shell $(AOMP)/bin/clang -print-resource-dir)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to check if clang exists here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!
AFAICT that check is done here: Makefile.defs#L44-L69
And we e.g. rely on the presence of clang here: Makefile.defs#L71

OMPTEST = -I$(CLANG_RESOURCE_DIR)/include/omptest -lomptest

# ompTest: Set and export CMake config path
omptest_DIR = $(AOMP)/lib/cmake/openmp/omptest/
Expand Down