Skip to content

Commit 5b6aa75

Browse files
committed
fix: import libloading at any case to avoid ci failures for now
1 parent 9a2deab commit 5b6aa75

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

compiler/rustc_codegen_llvm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bitflags = "2.4.1"
1414
gimli = "0.31"
1515
itertools = "0.12"
1616
libc = "0.2"
17-
libloading = { version = "0.9.0", optional = true }
17+
libloading = "0.9.0"
1818
measureme = "12.0.1"
1919
object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
2020
rustc-demangle = "0.1.21"
@@ -47,6 +47,6 @@ tracing = "0.1"
4747
[features]
4848
# tidy-alphabetical-start
4949
check_only = ["rustc_llvm/check_only"]
50-
llvm_enzyme = ["dep:libloading"]
50+
llvm_enzyme = []
5151
# tidy-alphabetical-end
5252

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#![expect(dead_code)]
22

33
use libc::{c_char, c_uint};
4+
// I am going to delete this declaration.
5+
// I have just added this to avoid conflicting to main branch and to let CI run.
6+
// I will make libloading as optional later, before merging this PR.
7+
#[cfg(not(feature = "llvm_enzyme"))]
8+
use libloading as _;
49

510
use super::MetadataKindId;
611
use super::ffi::{AttributeKind, BasicBlock, Context, Metadata, Module, Type, Value};

0 commit comments

Comments
 (0)