From 9b7aa8f6b6588d745e757923dc2f3ef6b665ffd8 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Sat, 9 Sep 2023 14:26:31 -0400 Subject: [PATCH] Meta: Do not spam ": command not found" In bd7d01e9, Meta/serenity.sh started checking cc and cxx if CC or CXX respectively are not set in the environment. My machine does not have cxx symlink in PATH, so every invocation of the script resulted in the "cxx: command not found" message outputted to stderr, and that became quite annoying. --- Meta/find_compiler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/find_compiler.sh b/Meta/find_compiler.sh index cc59185f87..ce52e6ec3a 100644 --- a/Meta/find_compiler.sh +++ b/Meta/find_compiler.sh @@ -9,7 +9,7 @@ is_supported_compiler() { fi local VERSION="" - VERSION="$($COMPILER -dumpversion)" || return 1 + VERSION="$($COMPILER -dumpversion 2> /dev/null)" || return 1 local MAJOR_VERSION="" MAJOR_VERSION="${VERSION%%.*}" if $COMPILER --version 2>&1 | grep "Apple clang" >/dev/null; then