Skip to content

Commit ae21b11

Browse files
committed
[rust_bundle] Fix for newer Corrosion versions
Since we don't pin a particular version
1 parent fc3ec63 commit ae21b11

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/rust_bundle/build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ fn main() {
3838

3939
#[cfg(windows)]
4040
let cargo_dir = format!("{}cargo\\build\\x86_64-pc-windows-msvc\\release\\", build_dir);
41+
42+
// New format for corrosion: build/cargo/brres-sys_2eabb/aarch64-apple-darwin/release/
43+
// (WAS: build/argo/build/aarch64-apple-darwin/release/)
44+
//
45+
// The .a files are mirrored in build/* though
4146
#[cfg(unix)]
42-
let cargo_dir = format!("{}cargo/build/aarch64-apple-darwin/release/", build_dir);
47+
let cargo_dir = format!("{}", build_dir);
4348

4449
#[cfg(unix)]
4550
{

0 commit comments

Comments
 (0)