Description: 为示例 ex_llil 补齐 TBB 链接以修复链接失败
 llil.cc 包含 <execution>，使用 libstdc++ 的并行 STL 后端（依赖 libtbb）；
 但 CMakeLists.txt 只为 ex_llil4map 链接了 TBB::tbb，遗漏了 ex_llil，
 导致链接报 undefined reference to `tbb::detail::r1::execution_slot(...)`。
 本次为 ex_llil 补上同样的 TBB::tbb 链接。
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: no
Last-Update: 2026-09-15
---
--- parallel-hashmap-1.4.1+ds.orig/CMakeLists.txt
+++ parallel-hashmap-1.4.1+ds/CMakeLists.txt
@@ -222,6 +222,11 @@ if (PHMAP_BUILD_EXAMPLES)
        add_executable(ex_llil examples/llil.cc phmap.natvis)
        target_include_directories(ex_llil PRIVATE ${Boost_INCLUDE_DIRS})
        target_compile_features(ex_llil PUBLIC cxx_std_20)
+       # llil.cc includes <execution> and uses the libstdc++ parallel STL
+       # backend, which must be linked against TBB (libtbb).
+       if (TBB_FOUND)
+           target_link_libraries(ex_llil PRIVATE TBB::tbb)
+       endif()
        
        file(COPY examples/llil_utils DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
     endif()
