llvm.org GIT mirror llvm / 8b37637
Strip extraneous information, if present, from the linker version string on Mac OS X. Patch by Fabian Groffen, with a slight tweak by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151612 91177308-0d34-0410-b5e6-96231b3b80d8 Charles Davis 7 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
99
1010 # Check for ld64.
1111 if (echo "$version_string" | grep -q "ld64"); then
12 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
12 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
1313 else
1414 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
1515 fi
77827782
77837783 # Check for ld64.
77847784 if (echo "$version_string" | grep -q "ld64"); then
7785 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7785 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
77867786 else
77877787 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
77887788 fi