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

Enable cross-directory ccache #1539

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lockshaw
Copy link
Collaborator

@lockshaw lockshaw commented Nov 10, 2024

Description of changes:

The current ccache setup is very limited in its ability to cache between directories due to the fact that the compiler-generated debug info and any __FILE__ macros cause builds to differ between directories, which is quite annoying if you are using ff-dev and would like to quickly ffpr down a PR and build it as you end up building from scratch. This PR adds the necessary compiler flags to make debug info and __FILE__ macros use relative paths, and then adds a wrapper around gdb that ensures that the debugging experience isn't affected (the only limitation is that you have to be running the debugger inside the nix environment, which you essentially have to do anyway).

Related Issues:

Linked Issues:

  • Issue #

Issues closed by this PR:

  • Closes #

This change is Reviewable

@lockshaw lockshaw marked this pull request as ready for review November 10, 2024 03:23
@lockshaw lockshaw changed the base branch from repo-refactor to master December 16, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant