forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes need to force-compile main and all report files to get updated git revision info.
- Loading branch information
Showing
11 changed files
with
121 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// ========================================================================== | ||
// Dedmonwakeen's Raid DPS/TPS Simulator. | ||
// Send questions to [email protected] | ||
// ========================================================================== | ||
|
||
#include "git_info.hpp" | ||
|
||
#if defined( SC_GIT_REV ) && defined( SC_GIT_BRANCH ) | ||
|
||
bool git_info::available() | ||
{ | ||
return true; | ||
} | ||
const char* git_info::revision() | ||
{ | ||
return SC_GIT_REV; | ||
} | ||
|
||
const char* git_info::branch() | ||
{ | ||
return SC_GIT_BRANCH; | ||
} | ||
|
||
#else | ||
|
||
bool git_info::available() | ||
{ | ||
return false; | ||
} | ||
const char* git_info::revision() | ||
{ | ||
return ""; | ||
} | ||
|
||
const char* git_info::branch() | ||
{ | ||
return ""; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// ========================================================================== | ||
// Dedmonwakeen's Raid DPS/TPS Simulator. | ||
// Send questions to [email protected] | ||
// ========================================================================== | ||
|
||
#pragma once | ||
|
||
namespace git_info { | ||
/// True if git revision information is available | ||
bool available(); | ||
/// git revision in short form | ||
const char* revision(); | ||
/// current git branch | ||
const char* branch(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters