Skip to content
  • Hans Wennborg's avatar
    Don't use __DATE__ or __TIME__; it breaks release builds (PR26145) · 59162da0
    Hans Wennborg authored
    The release builds are configured to be reproducible, so that the
    binaries compare equal between bootstrap iterations. The OpenMP
    run-time build was failing like this:
    
    runtime/src/kmp_version.c:108:79: error: expansion of date or time macro is not reproducible [-Werror,-Wdate-time]
    char const __kmp_version_build_time[]     = KMP_VERSION_PREFIX "build time: " __DATE__ " " __TIME__;
    
    Figuring as the build currently doesn't set LIBOMP_DATE, it's probably
    OK to skip setting the build time here too.
    
    llvm-svn: 257833
    59162da0
Loading