Issue 124860
Summary [libc][cmake] Deprecate LLVM_LIBC_* cmake flags and replacing them with LIBC_* flags.
Labels libc
Assignees
Reporter lntue
    Currently, in LLVM libc's cmake build system, both styles of flags, `LLVM_LIBC_<flag>` and `LIBC_<flag>` are being used.

We would like to deprecate all `LLVM_LIBC_<flag>`-style in favor of `LIBC_<flag>`-style.  Our plan is as follow:

For LLVM 21:
- [ ] Create `LIBC_<flag>` variant of the current `LLVM_LIBC_<flag>`
- [ ] Error out if both `LLVM_LIBC_<flag>` and `LIBC_<flag>` are set
- [ ] If only `LLVM_LIBC_<flag>` is set, warn that `LLVM_LIBC_<flag>` will be deprecated in LLVM 22, use `LIBC_<flag>` instead; and set`LIBC_<flag>` to be the same as `LLVM_LIBC_<flag>`.
- [ ] Migrate all usages of `LLVM_LIBC_<flag>` in llvm-project repo to `LIBC_<flag>`.
- [ ] Migrate all usages of `LLVM_LIBC_<flag>` in llvm-zorg repo to `LIBC_<flag>`.
- [ ] Migrate all usages of `LLVM_LIBC_<flag>` in the remaining bots to `LIBC_<flag>`.
- [ ] (Optional) Create a tracking issue for LLVM 22 and close this issue, considering the work for this issue in LLVM 21 is completed.

For LLVM 22:
- [ ] Remove all the extra logic related to `LLVM_LIBC_<flag>` in the cmake build system.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to