Menu

#218 Build date of SDCC in generated files

closed
None
1
2008-03-04
2007-09-05
Hubert Sack
No

The shown build date in .rst, .asm and so on is only correct if SDCCglue is compiled too.
My suggestion(s):
1. If make detects that *any* module must be recompiled, SDCCglue.c should be compiled too
2. An extra module (always compiled) to show the build date within the generated files

Discussion

  • Hubert Sack

    Hubert Sack - 2007-09-05
    • priority: 5 --> 1
     
  • Borut Ražem

    Borut Ražem - 2008-02-17

    Logged In: YES
    user_id=568035
    Originator: NO

    In the release and snapshot builds everything is compiled from zero, so the build dates are correct. What happens on developer's svn snapshot copy is up to him...

    Borut

     
  • Borut Ražem

    Borut Ražem - 2008-02-17
    • assigned_to: nobody --> borutr
    • status: open --> pending
     
  • Hubert Sack

    Hubert Sack - 2008-02-18

    Logged In: YES
    user_id=1160854
    Originator: YES

    I solved it in between by adding a line in "src/makefile.in":

    version.h: ../ChangeLog
    $(AWK) -f $(srcdir)/version.awk $< > $@
    touch -c $(srcdir)/SDCCglue.c <---

    if version.h is changed, SDCCglue.c will be compiled

     
  • Hubert Sack

    Hubert Sack - 2008-02-18
    • status: pending --> open
     
  • Hubert Sack

    Hubert Sack - 2008-02-18
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • Maarten Brock

    Maarten Brock - 2008-03-04
    • assigned_to: borutr --> maartenbrock
     
  • Maarten Brock

    Maarten Brock - 2008-03-04

    Logged In: YES
    user_id=888171
    Originator: NO

    Instead of touching SDCCglue.c from the makefile I have replaced __DATE__ with a new function getBuildDate() in SDCCutil.c which already depends on version.h.
    SDCC 2.7.5 #5068.

     

Log in to post a comment.