Add clang support

This commit is contained in:
2021-09-06 18:54:17 +02:00
parent 7cddf4735f
commit 0216bed053
6 changed files with 16 additions and 9 deletions

4
etc/config/clang.mk Normal file
View File

@@ -0,0 +1,4 @@
include ./etc/config/gcc.mk
export OMPI_CC=clang
export OMPI_CXX=clang++

View File

@@ -8,6 +8,8 @@ CXXFLAGS += -I$(ATRIP_ROOT)/include
CXXFLAGS += -I$(CTF_INCLUDE_PATH)
CXXFLAGS += -fPIC
CXXFLAGS += -std=c++11
CXXFLAGS += -pedantic -Wall
LDFLAGS += -fopenmp
LDFLAGS += -Wl,-Bstatic