pitrou opened a new pull request, #35597:
URL: https://github.com/apache/arrow/pull/35597

   Also warn/error out if non-deterministic compilation macros such as 
`__TIME__` are used (with gcc and clang at least).
   
   ### Rationale for this change
   
   The PCG headers use the `__DATE__` and `__TIME__` macros, which makes builds 
non-deterministic:
   https://github.com/imneme/pcg-cpp/issues/59
   
   Deterministic builds are useful for a number of reasons. One is security 
audits of binary artifacts, another (that directly affects us) is making 
compilation caching as efficient as possible. Preprocessor-based compilation 
caching breaks when time-dependent macros are used.
   
   ### What changes are included in this PR?
   
   Remove the `struct static_arbitrary_seed` construct from PCG.
   Also, enable a gcc/clang warning that detects the use of non-deterministic 
preprocessor macros.
   
   ### Are these changes tested?
   
   Yes, by the additional warning (which is turned into an error in "checkin" 
warnings mode).
   
   ### Are there any user-facing changes?
   
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to