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

ccache misses everything #1159

Open
bates64 opened this issue Jan 25, 2024 · 2 comments
Open

ccache misses everything #1159

bates64 opened this issue Jan 25, 2024 · 2 comments
Labels
bug Something isn't working build system Relates to build system internals like configure.py

Comments

@bates64
Copy link
Member

bates64 commented Jan 25, 2024

This is because ccache doesn't cache when the input comes from stdin. We can fix this by either

  1. calling gcc proper; or
  2. piping cpp output to an intermediary .i file and then using the path of that file for cc1

instead of piping cpp into cc1 into as. We do this because we want to use modern cpp. To solve (1) maybe we can replace cpp in the gcc2.8.1 directory with a symlink to the modern cpp?

I prefer (1) because not invoking bash for every cc task will save build time.

Blocks #1151

@bates64 bates64 added bug Something isn't working build system Relates to build system internals like configure.py labels Jan 25, 2024
@bates64
Copy link
Member Author

bates64 commented May 25, 2024

For posterity this is fixed in dx because it just uses modern gcc for everything

@bates64
Copy link
Member Author

bates64 commented May 25, 2024

To solve (1) maybe we can replace cpp in the gcc2.8.1 directory with a symlink to the modern cpp?

This may be trivial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build system Relates to build system internals like configure.py
Projects
None yet
Development

No branches or pull requests

1 participant