You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like in NativeAOT, if any file includes windows global definitions, then that file can't include PalRedhawkFunctions.h, to interact with the NativeAOT runtime.
For example, this can be seen on PalRedhawkMinWin.cpp, where the file includes #include <windows.h> but also needs to define its own PalEventWrite instead of using the one defined in PalRedhawkFunctions.h. This seems to be due to the fact that Windows and RedHawk global definitions cannot co-exist as the PalRedhawkMinWin.cpp comment states.
This issue is also going to exist in the planned EventPipe port to NativeAOT. Most of the files in the common EventPipe sources require windows global definitions and will not be able to use PalRedhawkFunctions.h and will need to define its own PalEventWrite similar to PalRedhawkMinWin.cpp above.
The text was updated successfully, but these errors were encountered:
It looks like in NativeAOT, if any file includes windows global definitions, then that file can't include PalRedhawkFunctions.h, to interact with the NativeAOT runtime.
For example, this can be seen on PalRedhawkMinWin.cpp, where the file includes
#include <windows.h>
but also needs to define its own PalEventWrite instead of using the one defined in PalRedhawkFunctions.h. This seems to be due to the fact that Windows and RedHawk global definitions cannot co-exist as the PalRedhawkMinWin.cpp comment states.This issue is also going to exist in the planned EventPipe port to NativeAOT. Most of the files in the common EventPipe sources require windows global definitions and will not be able to use PalRedhawkFunctions.h and will need to define its own
PalEventWrite
similar toPalRedhawkMinWin.cpp
above.The text was updated successfully, but these errors were encountered: