Skip to content

Commit

Permalink
Use -mergefunc-use-aliases for any LLVM >= 8
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Apr 18, 2019
1 parent bf843eb commit eed3619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/llvm_util.rs
Expand Up @@ -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 |
Expand Down

0 comments on commit eed3619

Please sign in to comment.