I’m trying to use the Project Properties’ “Linker -> Command Line -> Additional options” setting to add a build-timestamp to the program. It’s a beaglebone linux project being cross-compiled on Windows 10.
Here is what I’ve tried:
-Wl,--defsym,MVV2_TIMESTAMP="$(shell date /t)"
-Wl,--defsym,MVV2_TIMESTAMP="$(shell date +s%)"
-Wl,--defsym,MVV2_TIMESTAMP="$(date /t)"
-Wl,--defsym,MVV2_TIMESTAMP="'date /t'"
When I try to build the program using any of the above settings I get ld.exe:--defsym:0: syntax error
What is the correct syntax? How can I see the exact command that VisualGDB is trying to execute?