From e9e43e31d3bdce4f303793127f8444f16212454f Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Sat, 11 Feb 2023 01:11:06 -0500 Subject: [PATCH] [libc] Fix the regex detecting architecture triplet for macOS. Summary: See https://github.com/llvm/llvm-project/issues/60666 Reviewers: Subscribers: --- libc/cmake/modules/LLVMLibCArchitectures.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/cmake/modules/LLVMLibCArchitectures.cmake b/libc/cmake/modules/LLVMLibCArchitectures.cmake index b78e20403871..e2ae2e3af217 100644 --- a/libc/cmake/modules/LLVMLibCArchitectures.cmake +++ b/libc/cmake/modules/LLVMLibCArchitectures.cmake @@ -82,7 +82,7 @@ if(NOT (libc_compiler_info_result EQUAL "0")) message(FATAL_ERROR "libc build: error querying compiler info from the " "compiler: ${libc_compiler_info}") endif() -string(REGEX MATCH "Target: [-_a-z0-9]+[ \r\n]+" +string(REGEX MATCH "Target: [-_a-z0-9.]+[ \r\n]+" libc_compiler_target_info ${libc_compiler_info}) if(NOT libc_compiler_target_info) message(FATAL_ERROR "libc build: could not read compiler target info from:\n" -- 2.34.1