From 83a0a72b29ba220ae5e328a71c1dc627cd49622e Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Sat, 26 Aug 2023 18:19:47 -0700 Subject: [PATCH 1/3] Fix ARM compiler path on Windows Looks like the compiler path changed in recent versions. I'm using Version `12.3.Rel1`, released July 28, 2023. https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads Possible fix for #44? --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1a24be6..a72ea2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ const GCC_PATH_STR: &'static str = "/usr/local/bin/arm-none-eabi-gcc"; const GCC_PATH_STR: &'static str = "arm-none-eabi-gcc"; #[cfg(windows)] const GCC_PATH_STR: &'static str = - r"C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major\bin\arm-none-eabi-gcc.exe"; + r"C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\12.3 rel1\bin\arm-none-eabi-gcc.exe"; #[cfg(unix)] #[allow(unused)] From 4a9fc4241de0b8cc8c46ed63b9e5c9a92a22bdec Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Thu, 31 Aug 2023 15:57:54 -0700 Subject: [PATCH 2/3] Use PATH environment for GCC compiler on Windows --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a72ea2c..7f482a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,8 +28,7 @@ const GCC_PATH_STR: &'static str = "/usr/local/bin/arm-none-eabi-gcc"; #[cfg(all(unix, not(target_os = "macos")))] const GCC_PATH_STR: &'static str = "arm-none-eabi-gcc"; #[cfg(windows)] -const GCC_PATH_STR: &'static str = - r"C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\12.3 rel1\bin\arm-none-eabi-gcc.exe"; +const GCC_PATH_STR: &'static str = "arm-none-eabi-gcc.exe"; #[cfg(unix)] #[allow(unused)] From 3d6f1f41b76535f18ee28a81eaec83992b31f88a Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Tue, 12 Sep 2023 10:22:26 -0700 Subject: [PATCH 3/3] Update README Include a note about GCC ARM compiler being required in the `PATH` env var. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7b7c343..adac9a2 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ This software is not sponsored or supported by Panic. * Switch to the nightly toolchain using `rustup toolchain install nightly`, required for the `build-std` feature. * If you want to build for the Playdate device, you will need the `thumbv7em-none-eabihf` target. Added with `rustup +nightly target add thumbv7em-none-eabihf` * All the requirements listed in [Inside Playdate with C](https://sdk.play.date/inside-playdate-with-c#_prerequisites). + * The GCC ARM compiler must be available in your system `PATH` environment variable. (This is usually done for you by the installer). ## Installation