diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-07-25 21:34:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 21:34:36 +0300 |
commit | 09b963ff86d5d4b52928e420e68932fb19d919f4 (patch) | |
tree | 05593d509bf4e8ec3007fb55a89101c54ae5aa37 | |
parent | db5d4dfd16d2b56fd557b44d7b9e172372b43454 (diff) |
Fix ARM64 Unix debugging (#72736)
Co-authored-by: Juan Sebastian Hoyos Ayala <juan.s.hoyos@outlook.com>
-rw-r--r-- | src/coreclr/dlls/mscordbi/mscordbi.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/coreclr/dlls/mscordbi/mscordbi.cpp b/src/coreclr/dlls/mscordbi/mscordbi.cpp index 42ad8a090a6..891c01e144f 100644 --- a/src/coreclr/dlls/mscordbi/mscordbi.cpp +++ b/src/coreclr/dlls/mscordbi/mscordbi.cpp @@ -10,6 +10,12 @@ //***************************************************************************** #include "stdafx.h" +#if defined(HOST_ARM64) && defined(TARGET_UNIX) +// Flag to check if atomics feature is available on +// the machine +bool g_arm64_atomics_present = false; +#endif + extern BOOL WINAPI DbgDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved); @@ -19,13 +25,6 @@ extern BOOL WINAPI DbgDllMain(HINSTANCE hInstance, DWORD dwReason, //***************************************************************************** extern "C" #ifdef TARGET_UNIX - -#if defined(HOST_ARM64) -// Flag to check if atomics feature is available on -// the machine -bool g_arm64_atomics_present = false; -#endif - DLLEXPORT // For Win32 PAL LoadLibrary emulation #endif BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) |