We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
libgccjit
1 parent 5e33838 commit b987b70Copy full SHA for b987b70
src/bootstrap/src/core/build_steps/gcc.rs
@@ -39,8 +39,13 @@ impl GccOutput {
39
let mut target_filename = self.libgccjit.file_name().unwrap().to_str().unwrap().to_string();
40
target_filename.push_str(".0");
41
42
+ // If we build libgccjit ourselves, then `self.libgccjit` can actually be a symlink.
43
+ // In that case, we have to resolve it first, otherwise we'd create a symlink to a symlink,
44
+ // which wouldn't work.
45
+ let actual_libgccjit_path = t!(self.libgccjit.canonicalize());
46
+
47
let dst = directory.join(target_filename);
- builder.copy_link(&self.libgccjit, &dst, FileType::NativeLibrary);
48
+ builder.copy_link(&actual_libgccjit_path, &dst, FileType::NativeLibrary);
49
}
50
51
0 commit comments