diff --git a/External/FEXCore/Source/Interface/Core/ObjectCache/JobHandling.cpp b/External/FEXCore/Source/Interface/Core/ObjectCache/JobHandling.cpp index fa759327b..db7af6850 100644 --- a/External/FEXCore/Source/Interface/Core/ObjectCache/JobHandling.cpp +++ b/External/FEXCore/Source/Interface/Core/ObjectCache/JobHandling.cpp @@ -7,12 +7,11 @@ #include #include -#include -#include #include namespace FEXCore::CodeSerialize { void AsyncJobHandler::AsyncAddNamedRegionJob(uintptr_t Base, uintptr_t Size, uintptr_t Offset, const fextl::string &filename) { +#ifndef _WIN32 // This function adds a named region *JOB* to our named region handler // This needs to be as fast as possible to keep out of the way of the JIT @@ -77,9 +76,11 @@ namespace FEXCore::CodeSerialize { // Tell the async thread that it has work to do CodeObjectCacheService->NotifyWork(); } +#endif } void AsyncJobHandler::AsyncRemoveNamedRegionJob(uintptr_t Base, uintptr_t Size) { +#ifndef _WIN32 // Removing a named region through the job system // We need to find the entry that we are deleting first fextl::unique_ptr EntryPointer; @@ -119,6 +120,7 @@ namespace FEXCore::CodeSerialize { // Tell the async thread that it has work to do CodeObjectCacheService->NotifyWork(); } +#endif } void AsyncJobHandler::AsyncAddSerializationJob(fextl::unique_ptr Data) { diff --git a/External/FEXCore/Source/Interface/IR/AOTIR.cpp b/External/FEXCore/Source/Interface/IR/AOTIR.cpp index ab3bee5ce..7ba0c0253 100644 --- a/External/FEXCore/Source/Interface/IR/AOTIR.cpp +++ b/External/FEXCore/Source/Interface/IR/AOTIR.cpp @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -84,6 +83,7 @@ namespace FEXCore::IR { } static bool LoadAOTIRCache(AOTIRCacheEntry *Entry, int streamfd) { +#ifndef _WIN32 uint64_t tag; if (!readAll(streamfd, (char*)&tag, sizeof(tag)) || tag != FEXCore::IR::AOTIR_COOKIE) @@ -137,6 +137,9 @@ namespace FEXCore::IR { LogMan::Msg::DFmt("AOTIR: Module {} has {} functions", Module, Array->Count); return true; +#else + return false; +#endif } void AOTIRCaptureCache::FinalizeAOTIRCache() { @@ -412,6 +415,7 @@ namespace FEXCore::IR { } void AOTIRCaptureCache::UnloadAOTIRCacheEntry(AOTIRCacheEntry *Entry) { +#ifndef _WIN32 LOGMAN_THROW_AA_FMT(Entry != nullptr, "Removing not existing entry"); if (Entry->Array) { @@ -420,5 +424,6 @@ namespace FEXCore::IR { Entry->FilePtr = nullptr; Entry->Size = 0; } +#endif } }