diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-05-01 12:58:14 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-05-01 13:01:56 +0200 |
commit | 67331e5c074e8a8cbc2db013af8e5c1851f20a11 (patch) | |
tree | 4b0ef8bdb2237e1df7116043acc7ddca7ad14410 /bin/ptxdist | |
parent | f16d33237ae4793cd9c86bac177d996a9c15c9e1 (diff) | |
download | ptxdist-67331e5c074e8a8cbc2db013af8e5c1851f20a11.tar.gz ptxdist-67331e5c074e8a8cbc2db013af8e5c1851f20a11.tar.xz |
wrapper: build with -Wno-implicit-fallthrough if necessary
If icecc does not support remote cpp or if it is disabled then implicit
fallthrough warnings may occur because the corresponding comments are no
longer available. In combination with -Werror this can cause build errors.
So disable implicit fallthrough in this case to avoid the errors.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-x | bin/ptxdist | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index f9311405f..247b21339 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -559,6 +559,9 @@ check_compiler_icecc() { if ! "${PTXDIST_ICECC}" --version | grep -q 'ICECC 1\.'; then ptxd_bailout "PTXdist only supports icecc 1.x" fi + if "${PTXDIST_ICECC}" --help | grep -q ICECC_REMOTE_CPP; then + export PTXDIST_ICECC_REMOTE_CPP=1 + fi && mkdir -p "${icecc_dir}/target" "${icecc_dir}/host" && ( echo "Creating icecc host environment..." |