Use -mergefunc-use-aliases for any LLVM >= 8
This commit is contained in:
parent
bf843eb9c2
commit
eed3619f8d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ unsafe fn configure_llvm(sess: &Session) {
|
|||
if sess.opts.debugging_opts.disable_instrumentation_preinliner {
|
||||
add("-disable-preinline");
|
||||
}
|
||||
if llvm::LLVMRustIsRustLLVM() {
|
||||
if get_major_version() >= 8 {
|
||||
match sess.opts.debugging_opts.merge_functions
|
||||
.unwrap_or(sess.target.target.options.merge_functions) {
|
||||
MergeFunctions::Disabled |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue