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

Make builds reproducible #7

Open
Benjamin-Loison opened this issue Mar 19, 2023 · 1 comment
Open

Make builds reproducible #7

Benjamin-Loison opened this issue Mar 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Benjamin-Loison
Copy link
Owner

Benjamin-Loison commented Mar 19, 2023

For Shortcut that is the simplest program, .o are reproducible on the same machine but the .exe isn't even if we switch to Console application to not have any additional arguments in addition to those necessary for building a binary from the object file.

@Benjamin-Loison Benjamin-Loison added the enhancement New feature or request label Mar 19, 2023
@Benjamin-Loison
Copy link
Owner Author

Even on simplest example:

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

MinGW g++ isn't deterministic (while Linux g++ is deterministic) with:

g++ main.cpp

even with -frandom-seed=0 -Werror=date-time -fno-guess-branch-probability.

However stripping (with strip.exe) brings determinism.

Being able to reproduce without stripping would be nice.

Should deepen Compiler Flags from Project build options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant