From 0e94efe2eed52cebdb310bab729d6292e48c970a Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 1 May 2020 16:45:26 +0100 Subject: [PATCH] fix parallel computing when using clang --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ee4c001..18df048 100644 --- a/Makefile +++ b/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