[libc-commits] [libc] e9e43e3 - [libc] Fix the regex detecting architecture triplet for macOS.
Tue Ly via libc-commits
libc-commits at lists.llvm.org
Fri Feb 10 22:15:16 PST 2023
Author: Tue Ly
Date: 2023-02-11T01:13:43-05:00
New Revision: e9e43e31d3bdce4f303793127f8444f16212454f
URL: https://github.com/llvm/llvm-project/commit/e9e43e31d3bdce4f303793127f8444f16212454f
DIFF: https://github.com/llvm/llvm-project/commit/e9e43e31d3bdce4f303793127f8444f16212454f.diff
LOG: [libc] Fix the regex detecting architecture triplet for macOS.
Summary: See https://github.com/llvm/llvm-project/issues/60666
Reviewers:
Subscribers:
Added:
Modified:
libc/cmake/modules/LLVMLibCArchitectures.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCArchitectures.cmake b/libc/cmake/modules/LLVMLibCArchitectures.cmake
index b78e20403871d..e2ae2e3af2175 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"
More information about the libc-commits
mailing list