• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Auto-include date/time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-include date/time


  • Subject: Re: Auto-include date/time
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 4 Jul 2008 09:52:53 -0700


On Jul 4, 2008, at 5:38 AM, Uli Kusterer wrote:

Am 04.07.2008 um 03:38 schrieb Jens Alfke:
On 3 Jul '08, at 6:32 PM, Michael Stauffer wrote:
Is there a compiler directive to automatically include the current date and
time in a source file during compilation?

ANSI C defines built-in macros __DATE__ and __TIME__. You can read about these and more in the GCC docs:


Just keep in mind that, if this file doesn't change, the date won't be updated either. You may need a script that does a 'touch' on that source file as the first build phase in your project.


Unless this is fixed in a later version of Xcode, that doesn't actually work as the analysis which decides what to build happens before <rdar://problem/4068837>. It may still be necessary to put that in that in another target on which your main target depends.

--
Steve Checkoway

    "Anyone who says that the solution is to educate the users
    hasn't ever met an actual user." -- Bruce Schneier




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Auto-include date/time (From: "Michael Stauffer" <email@hidden>)
 >Re: Auto-include date/time (From: Jens Alfke <email@hidden>)
 >Re: Auto-include date/time (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Breakpoints under JNI?
  • Next by Date: Re: Adding files to "Compile sources" build step
  • Previous by thread: Re: Auto-include date/time
  • Next by thread: Off By One
  • Index(es):
    • Date
    • Thread