1
Fork 0

[LLVM-3.9] Pass correct relocation model flag

This commit is contained in:
Jan-Erik Rediger 2016-07-21 11:24:35 +02:00
parent 2c92756dde
commit dc7076b52e
2 changed files with 13 additions and 1 deletions

5
configure vendored
View file

@ -1020,6 +1020,11 @@ then
err "bad LLVM version: $LLVM_VERSION, need >=3.7"
;;
esac
if "$CFG_LLVM_ROOT/bin/llvm-mc" -help | grep "-relocation-model"; then
CFG_LLVM_MC_HAS_RELOCATION_MODEL=1
putvar CFG_LLVM_MC_HAS_RELOCATION_MODEL
fi
fi
# Even when the user overrides the choice of CC, still try to detect