tbb

Threading Building Blocks (TBB) lets you easily write parallel C++ programs that take full advantage of multicore performance, that are portable, composable and have future-proof scalability.

Latest version: 2022.1.0

Add to xmake.lua

add_requires("tbb 2022.1.0")

Learn how to add and link packages with Xmake →

Information

License
Apache-2.0
Recipe updated
2025-08-08T15:36:38.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • wasm: wasm32, wasm64
  • windows: x86, x64, arm, arm64, arm64ec
  • android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
  • macosx: x86_64, arm64

Options

compiler
Compiler used to compile tbb. · Type: string · Default: gcc · Values: gcc, clang, icc, cl, icl, [others]
shared
Build shared library. · Type: boolean · Default: true

Versions

  • 2020.3
  • 2021.2.0
  • 2021.3.0
  • 2021.4.0
  • 2021.5.0
  • 2021.7.0
  • 2021.10.0
  • 2021.11.0
  • 2021.12.0
  • 2021.13.0
  • 2022.0.0
  • 2022.1.0

Dependencies

No dependencies declared.

Used by (3)

Packages declaring this dependency; requirements can vary by platform and configuration.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "tbb 2022.1.0"

show info

xrepo info "tbb"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("tbb 2022.1.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("tbb")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "tbb 2022.1.0" shell