Disable PIC on Windows
This commit is contained in:
2
ispc.cpp
2
ispc.cpp
@@ -241,7 +241,9 @@ Target::GetTargetMachine() const {
|
||||
std::string featuresString = cpu + std::string(",") + attributes;
|
||||
llvm::TargetMachine *targetMachine =
|
||||
target->createTargetMachine(triple, featuresString);
|
||||
#ifndef ISPC_IS_WINDOWS
|
||||
targetMachine->setRelocationModel(relocModel);
|
||||
#endif // !ISPC_IS_WINDOWS
|
||||
#endif
|
||||
assert(targetMachine != NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user