kumquat-buildroot/toolchain
Yann E. MORIN 105a8c156c toolchain/wrapper: display options leading to a paranoid failure
Current, we only display the path that causes the paranoid failure. This
is sufficient, as we can fail only for -I and -L options, and it is thus
easy to infer from the path, which option is the culprit.

However, we're soon to add a new test for the -isystem option, and then
when a failure occurs, we would not know whether it was because of -I or
-isystem. Being able to differentiate both can be hugely useful to
track down the root cause for the unsafe path.

Add two new arguments to the check_unsafe_path() function: one with the
current-or-previous argument, one to specify whether it has the path in
it or not. Print that in the error message, instead of just the path.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-09-18 16:07:35 +02:00
..
toolchain toolchain/toolchain-buildroot: migrate to virtual package infrastructure 2014-06-14 19:10:13 +02:00
toolchain-buildroot arch: remove support for sh64 2016-09-08 22:15:15 +02:00
toolchain-external toolchain-external: fix potential entire root filesystem removal 2016-09-15 11:59:07 +02:00
Config.in bfin: change default to bf532, internal toolchain !bf6xx 2016-08-27 23:07:11 +02:00
helpers.mk toolchain/helpers: add fortran check 2016-07-03 16:58:11 +02:00
toolchain-common.in linux-headers: allow specifying 4.8 as kernel header version 2016-09-12 22:57:53 +02:00
toolchain-wrapper.c toolchain/wrapper: display options leading to a paranoid failure 2016-09-18 16:07:35 +02:00
toolchain-wrapper.mk toolchain/wrapper: fix potential bug in foreach loop 2015-10-25 23:01:48 +01:00
toolchain.mk toolchain: use the <PKG>_TARGET_FINALIZE_HOOKS 2016-07-18 23:30:46 +02:00