Skip to content

Commit 687ce3d

Browse files
committed
[BOLT][Hugify] Fix apple builds
Fix placement of ifdefs in hugify.cpp after D129107 landed.
1 parent c954cfe commit 687ce3d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bolt/runtime/hugify.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
//
77
//===---------------------------------------------------------------------===//
88

9-
#if defined (__x86_64__)
10-
#if !defined(__APPLE__)
9+
#if defined (__x86_64__) && !defined(__APPLE__)
1110

1211
#include "common.h"
1312

@@ -136,7 +135,6 @@ static void hugifyForOldKernel(uint8_t *From, uint8_t *To) {
136135

137136
__munmap(Mem, Size);
138137
}
139-
#endif
140138

141139
extern "C" void __bolt_hugify_self_impl() {
142140
uint8_t *HotStart = (uint8_t *)&__hot_start;

0 commit comments

Comments
 (0)