fix parallel computing when using clang

unique_makefile
Andrea 5 years ago
parent 921835dd89
commit 0e94efe2ee
  1. 5
      Makefile

@ -1,6 +1,7 @@
CC=gcc
CFLAGS=-O2
LDLIBS=-lm -lgmp -lz
NAME=$(shell uname -s)
BIN_DIR1= Complexity_Multiplex
BIN_DIR2= Reducibility_Multiplex
@ -28,6 +29,10 @@ IS_CC_CLANG=$(shell $(CC) --version 2>/dev/null | grep -Eic '(llvm|clang)')
ifeq ($(IS_CC_CLANG), 1)
# compiler is CLANG
LDLIBS+=-lomp
CFLAGS+=-Xpreprocessor -fopenmp
# ifeq ($(NAME),Darwin)
# CFLAGS+=-Xpreprocessor -fopenmp
# endif
endif
endif
endif

Loading…
Cancel
Save