diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-29 02:41:35 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-29 02:41:35 +0300 |
commit | 1dd6a778fb2b22854d7865e3264b8451593e83d4 (patch) | |
tree | d647b1affd9ba65a4686a3abdc3cdb94cd993900 /common | |
parent | 8b17522dffdce721c9368361ff32d0ed618db68b (diff) |
Allow manual disabling of libtbb linkage.
Diffstat (limited to 'common')
-rw-r--r-- | common/unix.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/unix.mk b/common/unix.mk index 0105093b..f836bdfc 100644 --- a/common/unix.mk +++ b/common/unix.mk @@ -3,6 +3,7 @@ # Ensure these are simply-substituted variables, without changing their values. LIBS := $(LIBS) +ifndef NO_TBB # Tracy does not use TBB directly, but the implementation of parallel algorithms # in some versions of libstdc++ depends on TBB. When it does, you must # explicitly link against -ltbb. @@ -13,6 +14,7 @@ ifeq (0,$(shell pkg-config --libs tbb >/dev/null 2>&1; echo $$?)) else ifeq (0,$(shell ld -ltbb -o /dev/null 2>/dev/null; echo $$?)) LIBS += -ltbb endif +endif OBJDIRBASE := obj/$(BUILD) OBJDIR := $(OBJDIRBASE)/o/o/o |