Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildsys: restrict vpath to src directory #4679

Closed

Conversation

fingolfin
Copy link
Member

Please provide a short summary of this PR and its purpose here. E.g., does it add a new feature, and which? Does it fix a bug, and which? If there is an associated issue, please list it here.

Text for release notes

We track noteworthy changes as entries in the CHANGES.md file in the root directory of this repository. To help us decide whether and how to describe your PR, please do one of the following:

  1. If this PR shall not be mentioned in the release notes, write "none" here.
  2. If a brief note suffices, edit the title of this PR to be usable as entry in CHANGES.md, and write "see title" here (or if you have the required permissions, add the label release notes: use title to this PR and remove this section)
  3. If a longer note is needed, just write it here, ideally following the general style used in that file

Further details

If necessary, provide further details down here.

The `vpath` directives are what makes out-of-tree builds possible. With
them, if a source file is not present in `${builddir}`, then GNU make
automatically looks for it in `${srcdir}`.

For files in `src`, this is generally what we want. But for generated
files in `build`, we do *not* want that. As a result, it could happen
that instead of `${builddir}/build/gap_version.c` we would access
`${srcdir}/build/gap_version.c`, and so on.

This patch fixes this by restricting the `vpath` directives to files
inside `src` subdirectory.
@fingolfin fingolfin added release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: build system labels Oct 25, 2021
@fingolfin fingolfin marked this pull request as ready for review October 25, 2021 21:27
@fingolfin fingolfin deleted the mh/buildsys-restrict-vpath branch October 26, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant