Wednesday, June 28th 2017, 12:26pm UTC+2

You are not logged in.

  • Login
  • Register

SvenKBach

Beginner

Date of registration: Feb 22nd 2016

Posts: 4

1

Thursday, November 24th 2016, 3:40pm

Generation of COPILE_TIME as a type of time_t

Hi!

I followed advice described at stackoverflow
but I could not get the project options correct to run either a pre-compile command

Source code

1
echo "#define COMPILE_TIME $(date '+%s')" > $(ProjectDir)/timestamp.h


or supply any additional arguments to the compiler like

Source code

1
-DCOMPILE_TIME=`date '+%s'`


What I am missing or not noticing?

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 350

2

Wednesday, December 21st 2016, 9:47am

Hi,

data is an external tool, which is most probably only available on Linux.

Best regards
Johannes