Skip to content
#

ccache

Here are 30 public repositories matching this topic...

ivan-tkatchev
ivan-tkatchev commented Jan 27, 2022

GCC and Clang have a -frandom-seed compiler option. The idea is to improve reproducibility by allowing the build system to specify random seeds for symbols that are randomly generated by the compiler.

ccache should ignore -frandom-seed in compiler options when looking for cache hits. Currently two compiler invocation command lines that are strictly identical except for the random seed will

feature help wanted good first issue
Xanewok
Xanewok commented Feb 10, 2022

Introduced in #128.

The original reason for that is purely technical - it is required to call unshare(CLONE_NEWUSER) in the main thread of a program. Since cachepot-dist is multi-threaded and the build is executed on a new thread, we used a hack in which we fork() and call unshare in the forked child (fork() forks the calling thread into a main thread of a forked child process).

Us

good first issue

Improve this page

Add a description, image, and links to the ccache topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ccache topic, visit your repo's landing page and select "manage topics."

Learn more