Skip to content

Commit ddfb66d

Browse files
authored
Update LLVMLibCArchitectures.cmake
Fix the matching failure of triples containing uppercase latter, such as 'openEuler'
1 parent bb89988 commit ddfb66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/cmake/modules/LLVMLibCArchitectures.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if(NOT (libc_compiler_info_result EQUAL "0"))
8484
message(FATAL_ERROR "libc build: error querying compiler info from the "
8585
"compiler: ${libc_compiler_info}")
8686
endif()
87-
string(REGEX MATCH "Target: [-_a-z0-9.]+[ \r\n]+"
87+
string(REGEX MATCH "Target: [-_a-zA-Z0-9.]+[ \r\n]+"
8888
libc_compiler_target_info ${libc_compiler_info})
8989
if(NOT libc_compiler_target_info)
9090
message(FATAL_ERROR "libc build: could not read compiler target info from:\n"

0 commit comments

Comments
 (0)