Skip to content

Commit 0b62c28

Browse files
committed
Merge pull request ispc#1054 from aguskov/master
Fixed compiling for Win32
2 parents 6ae2700 + 7428702 commit 0b62c28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ispc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,13 +1020,14 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo
10201020
#endif
10211021
if (g->opt.disableFMA == false)
10221022
options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
1023-
1023+
#if defined(LLVM_3_2) || defined(LLVM_3_3) || defined(LLVM_3_4) || defined(LLVM_3_5) || defined(LLVM_3_6)
10241024
#ifdef ISPC_IS_WINDOWS
10251025
if (strcmp("x86", arch) == 0) {
10261026
// Workaround for issue #503 (LLVM issue 14646).
10271027
// It's Win32 specific.
10281028
options.NoFramePointerElim = true;
10291029
}
1030+
#endif
10301031
#endif
10311032
m_targetMachine =
10321033
m_target->createTargetMachine(triple, m_cpu, featuresString, options,

0 commit comments

Comments
 (0)