Skip to content

Commit 4c826ce

Browse files
authored
Merge pull request #333 from cjappl/BuildBenchmarksOSX
Unlock ability to build benchmarks on OSX
2 parents bf1fe24 + d4ecd89 commit 4c826ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build/makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ ifeq ($(OS),Windows_NT)
1313
PLATFORM_OPTS = -static
1414
TBB_PLATFORM_OPTS = -DUSE_WINTHREAD
1515
else
16-
LD_PLATFORM_OPTS = -lrt
16+
UNAME_S := $(shell uname -s)
17+
ifeq ($(UNAME_S),Linux)
18+
LD_PLATFORM_OPTS = -lrt
19+
endif
1720
# -fsanitize=address seems to have a slow memory leak when creating/destroying a lot of threads
1821
#DEBUG_OPTS += -fno-omit-frame-pointer -fsanitize=address
1922
endif

0 commit comments

Comments
 (0)