ardupilot/Tools
Gustavo Jose de Sousa 1b6a87d8b4 waf: toolchain: clang: use waf to find toolchain path
The find_realexec_path function was used for finding the toolchain path mostly
because of two reasons:

 1) We couldn't really use CXX or CC variables because the user could set those
 from the OS's environment and Waf wouldn't look for the executable file in
 that case.

 2) Our CI configuration sets up symlinks for ccache and find_realexec_path
 works around that issue.

The bad side about using find_realexec_path() is that, besides working aroung
symlinks, it does the same thing that is done by Waf. This patch removes the
dependency for such a function by addressing each of the reasons above stated:

 1) We create a local copy of os.environ and, if there's a variable with the
 same name we are using, we remove it from the local copy.

 2) As done before, we are looking for the cross ar program instead of gcc
 program, since that is not used for ccache symlinks.
2016-03-23 17:11:02 -03:00
..
APM2_2560_bootloader Tools: fixup line endings 2014-04-15 15:55:15 +09:00
APM_radio_test Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArduPilotMega_demo Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArdupilotMegaPlanner Mission planner moved notice 2013-02-05 18:24:05 +08:00
ardupilotwaf waf: toolchain: clang: use waf to find toolchain path 2016-03-23 17:11:02 -03:00
ArduPPM Tools: replace header guard with pragma once 2016-03-16 18:40:45 +11:00
autotest Tools: remove erroneous space in rst output 2016-03-22 18:31:05 +11:00
CHDK-Scripts CHDK script changes 2014-12-26 16:04:35 +09:00
CodeStyle CodeStyle: xmlpretty.py considers nodes with only text children to be one-liners 2016-01-07 17:39:09 +11:00
CPUInfo waf: rename parameter blddestdir to program_group 2016-02-01 14:08:32 -02:00
Failsafe Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
FlightGear Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
Frame_params Frame_Params: remove defaults from Bebop2 params 2016-01-23 11:42:13 +09:00
GIT_Test autotest: Enable SITL code to call an external ROS simulator for ArduPlane 2015-03-14 09:07:52 +11:00
gittools Tools: gittools: add git-subsystems-split 2015-09-09 10:50:35 +10:00
Hello waf: ardupilotwaf: prefix build context methods with ap_ 2016-01-22 20:10:29 -02:00
Linux_HAL_Essentials Tools: replace header guard with pragma once 2016-03-16 18:40:45 +11:00
LogAnalyzer LogAnalyzer: adjust for change in vehicle definition MSG string 2015-10-15 09:40:25 +09:00
PPM_decoding Tools: fixup line endings 2014-04-15 15:55:15 +09:00
PXF Tools: Add PXF enable and check CS scripts 2014-07-14 09:29:36 +10:00
Replay Tools: replace header guard with pragma once 2016-03-16 18:40:45 +11:00
scripts travis: add Clang builds 2016-03-20 00:17:02 -03:00
SerialProxy Tools Serial Proxy: fixup line endings 2014-04-15 15:55:30 +09:00
vagrant Tools: Use GCC 4.9 as an Ubuntu prereq 2016-02-29 17:00:27 -03:00
Xplane import Tools directory 2011-09-09 11:31:32 +10:00