Skip to content

Commit f3ec035

Browse files
committed
Fix NoJit Build
1 parent c0fbcf6 commit f3ec035

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Common/Memory/PageAllocator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ PageAllocatorBase<TVirtualAlloc, TSegment, TPageSegment>::MemSetLocal(_In_ void
15911591
memset(dst, val, sizeInBytes);
15921592
}
15931593

1594-
#if _WIN32
1594+
#if ENABLE_OOP_NATIVE_CODEGEN
15951595
template<>
15961596
void
15971597
PageAllocatorBase<SectionAllocWrapper>::MemSetLocal(_In_ void *dst, int val, size_t sizeInBytes)
@@ -2862,7 +2862,7 @@ namespace Memory
28622862
template class SegmentBase < PreReservedVirtualAllocWrapper >;
28632863
template class PageSegmentBase < VirtualAllocWrapper >;
28642864
template class PageSegmentBase < PreReservedVirtualAllocWrapper >;
2865-
#if _WIN32
2865+
#if ENABLE_OOP_NATIVE_CODEGEN
28662866
template class PageAllocatorBase < SectionAllocWrapper >;
28672867
template class PageAllocatorBase < PreReservedSectionAllocWrapper >;
28682868
template class HeapPageAllocator < SectionAllocWrapper >;

lib/Common/Memory/PageAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class PageAllocation
378378

379379
friend class PageAllocatorBase<VirtualAllocWrapper>;
380380
friend class PageAllocatorBase<PreReservedVirtualAllocWrapper>;
381-
#if _WIN32
381+
#if ENABLE_OOP_NATIVE_CODEGEN
382382
friend class PageAllocatorBase<SectionAllocWrapper>;
383383
friend class PageAllocatorBase<PreReservedSectionAllocWrapper>;
384384
#endif

0 commit comments

Comments
 (0)