Skip to content

Commit 8e77eeb

Browse files
committed
Move to rustlib directory
1 parent c0d4f5f commit 8e77eeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ pub struct GccCodegenBackend {
182182
static LTO_SUPPORTED: AtomicBool = AtomicBool::new(false);
183183

184184
fn libgccjit_path(sysroot_path: &Path, target_triple: &str) -> PathBuf {
185-
let sysroot_lib_dir = sysroot_path.join("lib");
186-
sysroot_lib_dir.join(target_triple).join("libgccjit.so")
185+
let sysroot_lib_dir = sysroot_path.join("lib").join("rustlib");
186+
let libgccjit_target_lib_file =
187+
sysroot_lib_dir.join(target_triple).join("lib").join("libgccjit.so");
187188
}
188189

189190
fn load_libgccjit_if_needed(sysroot_path: &Path, target_triple: &str) {

0 commit comments

Comments
 (0)