Unlock ability to build benchmarks on OSX

This commit is contained in:
Chris Apple
2023-02-27 10:40:37 -08:00
parent bf1fe24c8e
commit d4ecd89229

View File

@@ -13,7 +13,10 @@ ifeq ($(OS),Windows_NT)
PLATFORM_OPTS = -static
TBB_PLATFORM_OPTS = -DUSE_WINTHREAD
else
LD_PLATFORM_OPTS = -lrt
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LD_PLATFORM_OPTS = -lrt
endif
# -fsanitize=address seems to have a slow memory leak when creating/destroying a lot of threads
#DEBUG_OPTS += -fno-omit-frame-pointer -fsanitize=address
endif