--- oneTBB-2022.2.0/cmake/compilers/GNU.cmake.orig	2025-06-30 15:31:02.000000000 +0200
+++ oneTBB-2022.2.0/cmake/compilers/GNU.cmake	2025-08-05 05:54:45.959102300 +0200
@@ -35,7 +35,10 @@
     set(TBB_MMD_FLAG -MMD)
 endif()
 
-
+if(MINGW)
+  set(_tbb_gnu_asm_major_version "2")
+  set(_tbb_gnu_asm_minor_version "43")
+else()
 # Binutils < 2.31.1 do not support the tpause instruction. When compiling with
 # a modern version of GCC (supporting it) but relying on an outdated assembler,
 # will result in an error reporting "no such instruction: tpause".
@@ -62,6 +65,7 @@
     unset(ASSEMBLER_VERSION_LINE_ERR)
     unset(ASSEMBLER_VERSION_LINE)
     message(TRACE "Extracted GNU assembler version: major=${_tbb_gnu_asm_major_version} minor=${_tbb_gnu_asm_minor_version}")
+endif()
 
     math(EXPR _tbb_gnu_asm_version_number  "${_tbb_gnu_asm_major_version} * 1000 + ${_tbb_gnu_asm_minor_version}")
     set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} "-D__TBB_GNU_ASM_VERSION=${_tbb_gnu_asm_version_number}")
