• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 18252174847

05 Oct 2025 01:36AM UTC coverage: 43.382% (-36.9%) from 80.261%
18252174847

push

github

web-flow
run tests on mac arm (#22717)

Just doing the minimal to pull forward the x86_64 pattern.

ref #20993

25776 of 59416 relevant lines covered (43.38%)

1.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/cc/subsystems/cc_infer.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from pants.option.option_types import BoolOption
×
5
from pants.option.subsystem import Subsystem
×
6
from pants.util.strutil import softwrap
×
7

8

9
class CCInferSubsystem(Subsystem):
×
10
    options_scope = "cc-infer"
×
11
    help = "Options controlling which dependencies will be inferred for CC targets."
×
12

13
    includes = BoolOption(
×
14
        default=True,
15
        help="Infer a target's dependencies by parsing #include statements from sources.",
16
    )
17

18
    # TODO: This option may move to a proper `cc` subsystem once compilation is implemented. It may also
19
    # change depending on how we want to model in-repo includes.
20
    include_from_source_roots = BoolOption(
×
21
        default=True,
22
        help=softwrap(
23
            """
24
            Infer a target's dependencies by trying to include relative to source roots.
25

26
            An example where this may be useful is if you have a a file at `root/include/mylib/foo.h`
27
            which may be referenced via `#include "mylib/foo.h"`. This option will allow you to
28
            correctly infer dependencies if you have a source root at `root/{include}` and searching for
29
            `mylib/foo.h` relative to the that source root.
30

31
            The inferred files take part in compilation, and the source root is added to the compilation
32
            include search path (https://clang.llvm.org/docs/ClangCommandLineReference.html#include-path-management)
33
            with command line arguments prefixed by the '-I' flag.
34
            """,
35
        ),
36
    )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc