mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Fancier TBB (Threaded Building Blocks) detection.
Update documentation to mention that it's needed.
This commit is contained in:
parent
2682ae1af0
commit
a12bf2d753
@ -25,8 +25,14 @@ else
|
|||||||
LIBS += $(shell pkg-config --libs gtk+-2.0) -lGL
|
LIBS += $(shell pkg-config --libs gtk+-2.0) -lGL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TBB := $(shell ld -ltbb -o /dev/null 2>/dev/null; echo $$?)
|
# Tracy does not use TBB directly, but the implementation of parallel algorithms
|
||||||
ifeq ($(TBB),0)
|
# in some versions of libstdc++ depends on TBB. When it does, you must
|
||||||
|
# explicitly link against -ltbb.
|
||||||
|
#
|
||||||
|
# Some distributions have pgk-config files for TBB, others don't.
|
||||||
|
ifeq (0,$(shell pkg-config --libs tbb >/dev/null 2>&1; echo $$?))
|
||||||
|
LIBS += $(shell pkg-config --libs tbb)
|
||||||
|
else ifeq (0,$(shell ld -ltbb -o /dev/null 2>/dev/null; echo $$?))
|
||||||
LIBS += -ltbb
|
LIBS += -ltbb
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user