File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,4 @@ tbb_repo = repos.prebuilt_libs_repo_rule(
2727 "lib/libtbbmalloc.so.2" ,
2828 ],
2929 build_template = "@onedal//dev/bazel/deps:tbb.tpl.BUILD" ,
30- # Remove this once support for TBB 2021.11 and older versions is discontinued
31- local_mapping = {
32- # Required directory layout and layout in the downloaded
33- # archives may be different. Mapping helps to setup relations
34- # between required layout (LHS) and downloaded (RHS).
35- # In this case, files from `lib/*` will be copied to `lib/intel64/*`.
36- "lib/" : "lib/intel64/gcc4.8/" ,
37- },
3830)
Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ if [ ! -d "${DST}/${OS}/bin" ]; then
7575 else
7676 echo tar -xvf " ${DST} /${TBB_PACKAGE} " -C " ${DST} "
7777 tar -C " ${DST} /${OS} " --strip-components=1 -xvf " ${DST} /${TBB_PACKAGE} "
78+ # Flatten old TBB layout (lib/intel64/gcc4.8/) to new layout (lib/)
79+ if [ -d " ${DST} /${OS} /lib/intel64/gcc4.8" ]; then
80+ mv " ${DST} /${OS} /lib/intel64/gcc4.8" /* " ${DST} /${OS} /lib/"
81+ rm -rf " ${DST} /${OS} /lib/intel64"
82+ fi
7883 fi
7984 ls -al " ${DST} /${OS} /"
8085 echo " Downloaded and unpacked oneTBB to ${DST} /${OS} "
You can’t perform that action at this time.
0 commit comments