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

View File

@@ -2,7 +2,7 @@ CTF_REPOSITORY = https://github.com/cyclops-community/ctf
CTF_COMMIT ?= v1.5.0
CTF_SRC_PATH = $(ATRIP_ROOT)/extern/src/ctf/$(CTF_COMMIT)
CTF_BUILD_PATH = $(ATRIP_ROOT)/extern/build/ctf/$(CTF_COMMIT)
CTF_BUILD_PATH = $(ATRIP_ROOT)/extern/build/$(CONFIG)/ctf/$(CTF_COMMIT)
CTF_CONFIG_FLAGS =