build: fix link error for _BitScanForward64 (#28173)

Problem: The usage of `_BitScanForward64` causes linking to fail on some systems.
Solution: Correctly check if it exists using `check_c_source_compiles`.
This commit is contained in:
Famiu Haque
2024-04-05 07:56:35 +06:00
committed by GitHub
parent dc69c475a5
commit 75b80516d5
3 changed files with 13 additions and 1 deletions

View File

@@ -52,3 +52,4 @@
#cmakedefine HAVE_EXECINFO_BACKTRACE
#cmakedefine HAVE_BUILTIN_ADD_OVERFLOW
#cmakedefine HAVE_WIMPLICIT_FALLTHROUGH_FLAG
#cmakedefine HAVE_BITSCANFORWARD64