Skip to content

Commit a47ea5c

Browse files
committed
Prevent slowdown when compiling with clang on not mac
1 parent 70feb19 commit a47ea5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/arch_x86_intrinsics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5229,7 +5229,7 @@ vector<Confidence<Ref<Type>>> X86CommonArchitecture::GetIntrinsicOutputs(uint32_
52295229
}
52305230

52315231

5232-
#ifdef __APPLE__
5232+
#ifdef __clang__
52335233
// clang is very slow at optimizing this function. Optimizations have nearly zero
52345234
// impact on initialization time, so just turn them off.
52355235
void X86CommonArchitecture::InitializeCachedInputTypes() __attribute__((optnone))
@@ -5241,7 +5241,7 @@ void X86CommonArchitecture::InitializeCachedInputTypes()
52415241
}
52425242

52435243

5244-
#ifdef __APPLE__
5244+
#ifdef __clang__
52455245
// clang is very slow at optimizing this function. Optimizations have nearly zero
52465246
// impact on initialization time, so just turn them off.
52475247
void X86CommonArchitecture::InitializeCachedOutputTypes() __attribute__((optnone))

0 commit comments

Comments
 (0)