llvm / llvm/llvm-project

[libc][cmake] Warn when the main header is missing while its entrypoint is included

Open
#210,657 1 comment 0 reactions 0 assignees View on GitHub
cmake libc
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

It's easy to forget to enable a header when enabling its (first) entry point. This would help us detect that.

See https://github.com/llvm/llvm-project/pull/210008#pullrequestreview-4714561358 for context.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked pull request review for the intended behavior, then trace the libc CMake logic that enables headers and their first entrypoints. Confirm the relevant configuration warns when an entrypoint is enabled without its main header, and verify the warning through the applicable CMake checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.