1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-17 21:35:37 +03:00

[TOOLS] Make sure settings compiler uses GCC from installed toolchain

This commit is contained in:
Konstantin (DigitalEntity) Sharlaimov 2019-07-08 22:38:45 +02:00
parent dcfc1d4036
commit cde7eb6b94
2 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ class Compiler
# Look for the compiler in PATH manually, since there
# are some issues with the built-in search by spawn()
# on Windows if PATH contains spaces.
dirs = (ENV["PATH"] || "").split(File::PATH_SEPARATOR)
dirs = (ENV["CPP_PATH"] || "").split(File::PATH_SEPARATOR)
bin = "arm-none-eabi-g++"
dirs.each do |dir|
p = File.join(dir, bin)