Skip to content

Use the build folder as an underlay of the index build folder #1270

Open
@ahoppen

Description

@ahoppen

The current design for indexing makes the index build completely independent of the “real” build. We need do decide whether we want to continue using the build folder as an underlay for the index build folder. This could solve problems where the index build fails to build one of the modules / whatever. Tricky questions are:

  • The user might specify additional build parameters like -Xswiftc or environment variables that modify the evaluation of Package.swift on the command line, which means that the build folder uses a different configuration than the index build folder
  • The user might not even build into .build (by specifying --scratch-dir) which means that we don’t even know where the build folder is, in general.

rdar://127476264

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions