🚧 fix compilation
This commit is contained in:
parent
fc415e2efb
commit
49643771ff
|
@ -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")
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue