This pull request proposes an improvement to the get_target_arch function in pthread-win32 to enhance compatibility across different platforms, including Linux. The new implementation replaces the use of try_run with direct processor detection using CMake variables and uname for Unix-like systems. This approach avoids potential compilation issues on non-Windows platforms.
This pull request proposes an improvement to the
get_target_arch
function inpthread-win32
to enhance compatibility across different platforms, including Linux. The new implementation replaces the use oftry_run
with direct processor detection using CMake variables anduname
for Unix-like systems. This approach avoids potential compilation issues on non-Windows platforms.