From ddfb66d3cf3cfe07dffcefa288f1217519e4ab98 Mon Sep 17 00:00:00 2001 From: westtide Date: Wed, 16 Oct 2024 11:07:27 +0800 Subject: [PATCH] Update LLVMLibCArchitectures.cmake Fix the matching failure of triples containing uppercase latter, such as 'openEuler' --- 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 7711127c1a81e..1e5ed723194a2 100644 --- a/libc/cmake/modules/LLVMLibCArchitectures.cmake +++ b/libc/cmake/modules/LLVMLibCArchitectures.cmake @@ -84,7 +84,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-zA-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"