Merge pull request #13335 from imrehorvath/imrehorvath-macos-clt-detect-clang-version-fix

Fix detect_clang_version version extraction
This commit is contained in:
Carlo Cabrera 2022-05-27 23:05:28 +08:00 committed by GitHub
commit 512f885bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,7 +383,7 @@ module OS
sig { returns(T.nilable(String)) }
def detect_clang_version
version_output = Utils.popen_read("#{PKG_PATH}/usr/bin/clang", "--version")
version_output[/clang-(\d+\.\d+\.\d+(\.\d+)?)/, 1]
version_output[/clang-(\d+(\.\d+)+)/, 1]
end
sig { returns(T.nilable(String)) }