summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdetect-compiler2
1 files changed, 1 insertions, 1 deletions
diff --git a/detect-compiler b/detect-compiler
index a87650b71b..124ebdd4c9 100755
--- a/detect-compiler
+++ b/detect-compiler
@@ -9,7 +9,7 @@ CC="$*"
#
# FreeBSD clang version 3.4.1 (tags/RELEASE...)
get_version_line() {
- LANG=C LC_ALL=C $CC -v 2>&1 | grep ' version '
+ LANG=C LC_ALL=C $CC -v 2>&1 | sed -n '/ version /{p;q;}'
}
get_family() {