mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Remove global GIT_COMMIT_HASH define, use GitVersionHash global var
* On windows, the change in a global GIT_COMMIT_HASH define in each project needing it meant a full rebuild every time the commit changed. * Ideally we'd set the define only on one file in each project, but MSBuild doesn't seem to support that. Instead we make a new tiny project that compiles a single cpp exporting a global var, and reference that global var in each other project.
This commit is contained in:
@@ -184,7 +184,7 @@ struct VersionCommand : public Command
|
||||
virtual int Execute(cmdline::parser &parser, const CaptureOptions &)
|
||||
{
|
||||
std::cout << "renderdoccmd " << (sizeof(uintptr_t) == sizeof(uint64_t) ? "x64" : "x86")
|
||||
<< " v" MAJOR_MINOR_VERSION_STRING << " built from " << GIT_COMMIT_HASH << std::endl;
|
||||
<< " v" MAJOR_MINOR_VERSION_STRING << " built from " << GitVersionHash << std::endl;
|
||||
|
||||
#if defined(DISTRIBUTION_VERSION)
|
||||
std::cout << "Packaged for " << DISTRIBUTION_NAME << " (" << DISTRIBUTION_VERSION << ") - "
|
||||
|
||||
Reference in New Issue
Block a user