Skip to content

Commit d4ecd89

Browse files
committed
Unlock ability to build benchmarks on OSX
1 parent bf1fe24 commit d4ecd89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/makefile

+4-1
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)