Skip to content

Commit

Permalink
Use PATH environment for GCC compiler on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Aug 31, 2023
1 parent 83a0a72 commit 4a9fc42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 4a9fc42

Please sign in to comment.