I'm with Jason, it's easier to just do a script to wrap the call to tup... but you can also use Tup to call a script that generates a header with some #defines that get included automatically. In one project I'm on, we call it "version.h".
On Friday, March 15, 2019 at 7:38:08 PM UTC+1, Julian Stecklina wrote: > > Hello, > > I'm trying to include a project's current Git version into the binary on > build time. This problem has come up before and so far I'm not aware of > any non-hacky solution to do this. See previous discussions and my > unsuccessful attempt at asking this on Stackoverflow: > > - > https://groups.google.com/forum/#!msg/tup-users/e_1ynmm1GA8/BrbQ8a8Ul80J;context-place=topic/tup-users/TwaoCaOn_S8 > > - > https://stackoverflow.com/questions/45426455/git-commit-sha-as-part-of-tup-built-binary/55187029#55187029 > > Since the original discussion is already several years old, has anyone > found a better solution since then? > > Thanks, > Julian > > -- -- tup-users mailing list email: [email protected] unsubscribe: [email protected] options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
