[all-commits] [llvm/llvm-project] 4cc6a0: Update LLVMLibCArchitectures.cmake (#112464)

westtide via All-commits all-commits at lists.llvm.org
Tue Oct 15 20:23:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cc6a08142129d351840c3c63d9372a2b66930b2
      https://github.com/llvm/llvm-project/commit/4cc6a08142129d351840c3c63d9372a2b66930b2
  Author: westtide <tocokeo at outlook.com>
  Date:   2024-10-15 (Tue, 15 Oct 2024)

  Changed paths:
    M libc/cmake/modules/LLVMLibCArchitectures.cmake

  Log Message:
  -----------
  Update LLVMLibCArchitectures.cmake (#112464)

Hi there,

When building llvm-libc on the openEuler system, I encountered an issue
as shown in the image below:

![image](https://github.com/user-attachments/assets/75667de4-5bea-4a95-be28-ed34db0e05b9)

This issue happens because the regular expression used in
`libc/cmake/modules/LLVMLibCArchitectures.cmake`: `string(REGEX MATCH
"Target: [-_a-z0-9.]+[ \r\n]+")` does not handle capital letters
properly in `openEuler`.

To fix this, I modified the regular expression to: `string(REGEX MATCH
"Target: [-_a-zA-Z0-9.]+[ \r\n]+")`. This change makes it compatible
with capital letters.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list