summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2024-04-17 13:30:58 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2024-04-17 19:17:36 +0900
commit429e3e2a85f4846fde809df60817c0ec9142ef7b (patch)
tree14f8d22ca950df41d10308d4976f15725d6eaf7d
parent700368c86602b13ff18d03ff1b9348c9e5b3477a (diff)
downloaddldt-429e3e2a85f4846fde809df60817c0ec9142ef7b.tar.gz
dldt-429e3e2a85f4846fde809df60817c0ec9142ef7b.tar.bz2
dldt-429e3e2a85f4846fde809df60817c0ec9142ef7b.zip
Backport TBB fix to allow building on GCC13
Ubuntu mantic/noble uses gcc13. Reference: https://github.com/bambulab/BambuStudio/pull/1882/commits/d3459cb1b9f791531fe24b0558c581117243eade Change-Id: I8c623030a37c3734627916c3daa450fd2dca8134 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rwxr-xr-xdebian/rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 96af22e33..b05e1aa10 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,7 @@ prepare_tbb:
rm -rf $(SRC_ROOT)/inference-engine/temp && mkdir -p $(SRC_ROOT)/inference-engine/temp
cp $(SRC_ROOT)/packaging/$(EXTERNAL_TBB_ARCHIVE).tar.gz $(SRC_ROOT)/inference-engine/temp
cd $(SRC_ROOT)/inference-engine/temp && tar zxvf $(EXTERNAL_TBB_ARCHIVE).tar.gz && rm -f *.tar.gz
+ cd $(SRC_ROOT)/inference-engine/temp/tbb/include/tbb && sed -i 's/task\* next_offloaded;/tbb::task* next_offloaded;/' task.h
cp $(SRC_ROOT)/debian/tbb_patches/*.patch $(EXTERNAL_TBB_SRC_ROOT)
patch -d $(EXTERNAL_TBB_SRC_ROOT) -p1 < $(EXTERNAL_TBB_SRC_ROOT)/$(EXTERNAL_TBB_SRC_PATCH0)
cd $(EXTERNAL_TBB_SRC_ROOT) && LDFLAGS="" $(MAKE) tbb_build_prefix=ubuntu_$(DEB_HOST_ARCH) extra_inc=big_iron.inc -j$(nproc)