Add clang support
This commit is contained in:
4
etc/config/clang.mk
Normal file
4
etc/config/clang.mk
Normal file
@@ -0,0 +1,4 @@
|
||||
include ./etc/config/gcc.mk
|
||||
|
||||
export OMPI_CC=clang
|
||||
export OMPI_CXX=clang++
|
||||
@@ -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
|
||||
|
||||
@@ -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 =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user