Skip to content

Commit eed3619

Browse files
committed
Use -mergefunc-use-aliases for any LLVM >= 8
1 parent bf843eb commit eed3619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/llvm_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ unsafe fn configure_llvm(sess: &Session) {
6161
if sess.opts.debugging_opts.disable_instrumentation_preinliner {
6262
add("-disable-preinline");
6363
}
64-
if llvm::LLVMRustIsRustLLVM() {
64+
if get_major_version() >= 8 {
6565
match sess.opts.debugging_opts.merge_functions
6666
.unwrap_or(sess.target.target.options.merge_functions) {
6767
MergeFunctions::Disabled |

0 commit comments

Comments
 (0)