🚧 fix compilation

This commit is contained in:
Vladislav Nepogodin 2023-03-19 15:12:23 +04:00
parent fc415e2efb
commit 49643771ff
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ args = parser.parse_args()
environ["CARGO_TARGET_DIR"] = path.join(args.build_root, "target")
environ["CARGO_HOME"] = path.join(args.build_root, "cargo-home")
environ["OUT_DIR"] = path.join(args.build_root, "target")
cargo_toml_path = path.join(args.source_root, "Cargo.toml")

View File

@ -31,7 +31,7 @@ else
message('Building in debug mode')
endif
cargo_env = [ 'CARGO_HOME=' + cargo_home ]
cargo_env = [ 'CARGO_HOME=' + cargo_home, 'OUT_DIR=' + meson.project_build_root() ]
cargo_build = custom_target(
'cargo-build',