[all-commits] [llvm/llvm-project] db29c0: sanitizer_common: link Synchronization.lib on Windows
Dmitry Vyukov via All-commits
all-commits at lists.llvm.org
Fri Jul 16 10:59:18 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: db29c030dfea83bbdaa05408bf37d46461adf008
https://github.com/llvm/llvm-project/commit/db29c030dfea83bbdaa05408bf37d46461adf008
Author: Dmitry Vyukov <dvyukov at google.com>
Date: 2021-07-16 (Fri, 16 Jul 2021)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
Log Message:
-----------
sanitizer_common: link Synchronization.lib on Windows
Windows bot failed with:
sanitizer_win.cpp.obj : error LNK2019: unresolved external symbol WaitOnAddress referenced in function "void __cdecl __sanitizer::FutexWait(struct __sanitizer::atomic_uint32_t *,unsigned int)" (?FutexWait at __sanitizer@@YAXPEAUatomic_uint32_t at 1@I at Z)
sanitizer_win.cpp.obj : error LNK2019: unresolved external symbol WakeByAddressSingle referenced in function "void __cdecl __sanitizer::FutexWake(struct __sanitizer::atomic_uint32_t *,unsigned int)" (?FutexWake at __sanitizer@@YAXPEAUatomic_uint32_t at 1@I at Z)
sanitizer_win.cpp.obj : error LNK2019: unresolved external symbol WakeByAddressAll referenced in function "void __cdecl __sanitizer::FutexWake(struct __sanitizer::atomic_uint32_t *,unsigned int)" (?FutexWake at __sanitizer@@YAXPEAUatomic_uint32_t at 1@I at Z)
https://lab.llvm.org/buildbot/#/builders/127/builds/14046
According to MSDN we need to link Synchronization.lib:
https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitonaddress
Differential Revision: https://reviews.llvm.org/D106167
More information about the All-commits
mailing list