Skip to content

Commit

Permalink
fix broken macports build with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
jtamir committed Jun 28, 2024
1 parent 694883f commit e949e22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ endif

ifeq ($(BUILDTYPE), MacOSX)
MACPORTS ?= 1
else
MACPORTS ?= 0
endif


Expand Down Expand Up @@ -460,9 +462,15 @@ CFLAGS += -fopenmp
CXXFLAGS += -fopenmp
NVCCFLAGS += -Xcompiler -fopenmp
else
ifeq ($(MACPORTS),1)
CFLAGS += -fopenmp
CXXFLAGS += -fopenmp
NVCCFLAGS += -Xcompiler -fopenmp
else
LDFLAGS += "-L/usr/local/opt/libomp/lib" -lomp
CPPFLAGS += "-I/usr/local/opt/libomp/include" -Xclang -fopenmp
endif
endif
else
CFLAGS += -Wno-unknown-pragmas
CXXFLAGS += -Wno-unknown-pragmas
Expand Down

0 comments on commit e949e22

Please sign in to comment.