diff options
| author | ruki <[email protected]> | 2023-08-08 23:52:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-08-08 23:52:48 +0800 |
| commit | 6ace9d5ab4735767b35d22cefd980e5f447db95c (patch) | |
| tree | ff48025d851bedd4d18385b1405edf476574cff6 /tests/projects/rust | |
| parent | 1494182a09187cf49edc9a19badc3be287e8a327 (diff) | |
add cross build
Diffstat (limited to 'tests/projects/rust')
| -rw-r--r-- | tests/projects/rust/cargo_deps_cross_build/xmake.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/projects/rust/cargo_deps_cross_build/xmake.lua b/tests/projects/rust/cargo_deps_cross_build/xmake.lua index 6327b2e17..36a0e73c7 100644 --- a/tests/projects/rust/cargo_deps_cross_build/xmake.lua +++ b/tests/projects/rust/cargo_deps_cross_build/xmake.lua @@ -1,8 +1,10 @@ +-- rustup target add aarch64-unknown-none +-- xmake f -p cross --cross=aarch64-unknown-none + add_rules("mode.release", "mode.debug") add_requires("cargo::test", {configs = { std = false, main = false, - build_target = "aarch64-unknown-none", cargo_toml = path.join(os.projectdir(), "Cargo.toml")}}) target("test") |
