I'm using mcc to compile my Matlab function(s) into a standalone executable for my target platform. I'd like to be able to reference a global variable that was written into the executable at build time, when running the executable.
For example
At build time, I extract the git commit hash of the repository,
commitHashcommitHashsomehow becomes a global variable inside my executableEvery output of my executable (a file) is tagged with
commitHash
The challenge here is that the commit hash is only known at build time and the standalone executable will no longer be in a repository when it's running.
Thanks!