On 2026/09/05 21:00, LIU Hao wrote:
> 在 2026-9-4 22:25, Zhongteng Gui 写道:
>> diff --git a/mingw-w64-crt/crt/mingw_custom.c 
>> b/mingw-w64-crt/crt/mingw_custom.c
>> index 431eaba2e..da81e267d 100644
>> --- a/mingw-w64-crt/crt/mingw_custom.c
>> +++ b/mingw-w64-crt/crt/mingw_custom.c
>> @@ -5,12 +5,10 @@
>>    */
>>     #include <_mingw.h>
>> -#include "../revstamp.h"
>>     const char *__mingw_get_crt_info (void)
>>   {
>> -  return "MinGW-W64 Runtime " __MINGW64_VERSION_STR " ("
>> -         __MINGW64_VERSION_STATE " - "
>> -     "rev. " __MINGW_W64_REV ") " __MINGW_W64_REV_STAMP;
>> +  return "MinGW-w64 Runtime " __MINGW64_VERSION_STR " ("
>> +         __MINGW64_VERSION_STATE ") " __DATE__ " " __TIME__;
>>   }
> 
> This would make the build non-reproducible. I don't know whether it's a good
> idea or not.
> 

For reproducible build, usually environment variable SOURCE_DATE_EPOCH will be
defined, and both GCC and Clang will use that timepoint for __DATE__ and 
__TIME__.

BTW, many other things will break reproducible build if SOURCE_DATE_EPOCH is not
defined (e.g. ar without option D), so this wouldn't add extra effort.


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to