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

comments about rule 9 "Order the instructions" #104

Open
sdettmer opened this issue Jul 6, 2022 · 1 comment
Open

comments about rule 9 "Order the instructions" #104

sdettmer opened this issue Jul 6, 2022 · 1 comment

Comments

@sdettmer
Copy link

sdettmer commented Jul 6, 2022

comments about rule 9 "Order the instructions"

Instructions must produce the same result, but independent intermediate data elements can be built concurrently, and build tools actually do that. For example, make -j<N> (to run N compiler jobs in parallel) is extremely common in my scope and can create reproducible results, although the order of the instructions is not known and may change on each build.

This might require special attention, such as not including build.log with detailed filenames and alike, and of course it is easy to create a build process where the order does matter, so care is needed.

@vsoch
Copy link
Collaborator

vsoch commented Jul 6, 2022

I don't think this rule disallows something like make -j, that is reading a bit too much into it. That rule can also be part of a logic ordering (e.g., make you have the dependencies installed first).

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

No branches or pull requests

2 participants