mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
ci/print_versions: don't print compiler error
This commit is contained in:
parent
c89eccd219
commit
0ecba666b9
2
dist/tools/ci/print_toolchain_versions.sh
vendored
2
dist/tools/ci/print_toolchain_versions.sh
vendored
@ -24,7 +24,7 @@ get_define() {
|
||||
local cc="$1"
|
||||
local line=
|
||||
if command -v "$cc" 2>&1 >/dev/null; then
|
||||
line=$(echo "$3" | "$cc" -x c -include "$2" -E -o - - 2>&1 | sed -e '/^[ ]*#/d' -e '/^[ ]*$/d')
|
||||
line=$(echo "$3" | "$cc" -x c -include "$2" -E -o - - 2>/dev/null | sed -e '/^[ ]*#/d' -e '/^[ ]*$/d')
|
||||
fi
|
||||
if [ -z "$line" ]; then
|
||||
line=missing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user