Commit Graph

7 Commits

Author SHA1 Message Date
Chiichen
4dd87b2dc1
chore: Fixed incorrect use of cfg! macro and update build.rs to support arm target (#1458)
What I've done

    Fixed incorrect use of cfg! macro use the CARGO_CFG_TARGET_<OS/ARCH> macro instead of the original cfg! (target_<os/arch>) This is because The build script is compiled for the host architecture as a separate build phase, as that's where it runs. Since the cfg macro runs at compile time it'll always report the host configuration there.When cargo runs the build script it passes the configuration through environment variables, one of which is CARGO_CFG_TARGET_ARCH. Some dicussions can be found here

    update build.rs to support arm target support arm target. Like the Aarch64 target, we need to additionally install the cross-compilation toolchain and specify the linker in Cargo/config.toml. I can add this part of the work in next pull request if necessary.


Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-05-12 11:00:14 -06:00
Ardi
9ae2bc2e78
chore: Update toolchain + cargo update (#1469)
* Update toolchain + cargo update

* Update trybuild

* macos-13

---------

Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-05-09 16:27:44 +00:00
Matt Mastracci
63eea06a9a
chore: bump rust-toolchain (#1408) 2024-03-01 17:28:17 +00:00
Matt Mastracci
096c540393
chore: update to Rust 1.71 (#1283) 2023-07-13 12:42:58 -04:00
Bartek Iwańczuk
4dd8b60bf0
chore: update to Rust 1.70.0 (#1277) 2023-07-11 12:50:03 -06:00
linbingquan
cb8573dc0d
chore: update to Rust 1.66.0 (#1156) 2022-12-21 00:11:23 +01:00
Bartek Iwańczuk
65ff64e5cd
chore: update Rust to 1.65.0 (#1116) 2022-11-25 14:32:52 +01:00