mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Allow manual disabling of libtbb linkage.
This commit is contained in:
parent
8b17522dff
commit
1dd6a778fb
@ -3,6 +3,7 @@
|
|||||||
# Ensure these are simply-substituted variables, without changing their values.
|
# Ensure these are simply-substituted variables, without changing their values.
|
||||||
LIBS := $(LIBS)
|
LIBS := $(LIBS)
|
||||||
|
|
||||||
|
ifndef NO_TBB
|
||||||
# Tracy does not use TBB directly, but the implementation of parallel algorithms
|
# 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
|
# in some versions of libstdc++ depends on TBB. When it does, you must
|
||||||
# explicitly link against -ltbb.
|
# 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 $$?))
|
else ifeq (0,$(shell ld -ltbb -o /dev/null 2>/dev/null; echo $$?))
|
||||||
LIBS += -ltbb
|
LIBS += -ltbb
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
OBJDIRBASE := obj/$(BUILD)
|
OBJDIRBASE := obj/$(BUILD)
|
||||||
OBJDIR := $(OBJDIRBASE)/o/o/o
|
OBJDIR := $(OBJDIRBASE)/o/o/o
|
||||||
|
Loading…
Reference in New Issue
Block a user