Fix MSVC ASan compilation by avoiding GCC/Clang specific stack instrumentation
PiperOrigin-RevId: 951656966 Change-Id: I51294e6a95c39f4037e8feb2aee45e69cb51beb0
This commit is contained in:
committed by
Copybara-Service
parent
8ccd2b6db5
commit
259e6c4dc6
@@ -75,6 +75,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ADDRESS_SANITIZER) && !defined(_MSC_VER)
|
||||
#define mjUSEASAN
|
||||
#endif
|
||||
|
||||
// Atomics helper for size_t.
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#include <intrin.h>
|
||||
@@ -103,7 +107,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef ADDRESS_SANITIZER
|
||||
#ifdef mjUSEASAN
|
||||
int mj__comparePcFuncName(void* pc1, void* pc2);
|
||||
const char* mj__getPcDebugInfo(void* pc);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user