In IAR embedded workbench IDE, I need to force the compilation of a file, every time I build the project (in order to recompile __DATE__
and __TIME__
).
So I need to "touch" that file (i.e., delete the corresponding object file).
I went into the project options --> C/C++ Compiler --> Extra Options --> Use command line options.
In there, I entered a shell command for deleting that file, but without luck. I tried several different ways of doing it, including to call a batch file. Examples:
del "$OBJ_DIR$\mng_version.o"
cmd /c "del "$OBJ_DIR$\mng_version.o""
pre_build.bat
None of these worked. Does anybody have any idea how to do this?