Disable PIC on Windows

This commit is contained in:
Matt Pharr
2011-09-19 15:32:20 -07:00
parent 8ad28a3f6f
commit 7126a39092
2 changed files with 6 additions and 0 deletions

View File

@@ -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);