Skip to content

Commit

Permalink
I guess that non-apple clang supports -fopenmp
Browse files Browse the repository at this point in the history
  • Loading branch information
pettyalex committed Nov 9, 2023
1 parent ce5d262 commit 8822011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion recipes/susiex/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
mkdir -p $PREFIX/bin

cd src
make LDFLAGS="-L$PREFIX/lib -O3 -flto"
cp ../bin/SuSiEx $PREFIX/bin/SuSiEx
4 changes: 2 additions & 2 deletions recipes/susiex/portable_makefile.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ index 2f32523..a5057a8 100644
+UNAME_S := $(shell uname -s)
+
+ifeq ($(UNAME_S),Darwin)
+ CXXFLAGS+=-Xpreprocessor -fopenmp
+ LDLIBS+=-lomp
+ CXXFLAGS+=-fopenmp
+ LDLIBS+=-fopenmp
+else
+ CXXFLAGS=-fopenmp
+ LDFLAGS+=-fopenmp
Expand Down

0 comments on commit 8822011

Please sign in to comment.