diff options
author | Jim Blandy <jimb@red-bean.com> | 2020-07-31 19:14:12 +0300 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 2020-07-31 19:14:12 +0300 |
commit | 652582b119848838035143a5d621ccbda599ddbf (patch) | |
tree | 49d435b02d2ad43e4395559aa08b450305950483 /import-chrome | |
parent | a12bf2d75314c2e3032b017f41e0785e0ed733d9 (diff) |
Factor out makefile TBB detection, apply to all tools.
Diffstat (limited to 'import-chrome')
-rw-r--r-- | import-chrome/build/unix/build.mk | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/import-chrome/build/unix/build.mk b/import-chrome/build/unix/build.mk index fcd1f6b0..f540e858 100644 --- a/import-chrome/build/unix/build.mk +++ b/import-chrome/build/unix/build.mk @@ -1,8 +1,10 @@ +include ../../../common/unix.mk + CFLAGS += CXXFLAGS := $(CFLAGS) -std=gnu++17 DEFINES += -DTRACY_NO_STATISTICS INCLUDES := $(shell pkg-config --cflags capstone) -LIBS := $(shell pkg-config --libs capstone) -lpthread +LIBS += $(shell pkg-config --libs capstone) -lpthread PROJECT := import-chrome IMAGE := $(PROJECT)-$(BUILD) @@ -14,11 +16,6 @@ BASE2 := $(shell egrep 'ClCompile.*c"' ../win32/$(PROJECT).vcxproj | sed -e 's/. SRC := $(filter-out $(FILTER),$(BASE)) SRC2 := $(filter-out $(FILTER),$(BASE2)) -TBB := $(shell ld -ltbb -o /dev/null 2>/dev/null; echo $$?) -ifeq ($(TBB),0) - LIBS += -ltbb -endif - OBJDIRBASE := obj/$(BUILD) OBJDIR := $(OBJDIRBASE)/o/o/o |