-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): --version and --help now output the version with the commi…
…t hash
- Loading branch information
Showing
5 changed files
with
25 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
* @file Constants.hpp | ||
* @author Alexandre Plateau ([email protected]) | ||
* @brief Constants used by ArkScript | ||
* @version 0.1 | ||
* @version 0.2 | ||
* @date 2020-10-27 | ||
* | ||
* @copyright Copyright (c) 2020 | ||
* @copyright Copyright (c) 2020-2024 | ||
* | ||
*/ | ||
|
||
|
@@ -17,10 +17,9 @@ constexpr int ARK_VERSION_MAJOR = @ARK_VERSION_MAJOR@; | |
constexpr int ARK_VERSION_MINOR = @ARK_VERSION_MINOR@; | ||
constexpr int ARK_VERSION_PATCH = @ARK_VERSION_PATCH@; | ||
// clang-format on | ||
constexpr int ARK_VERSION = (ARK_VERSION_MAJOR << 16) + (ARK_VERSION_MINOR << 8) + ARK_VERSION_PATCH; | ||
constexpr char ARK_VERSION_STR[4] = { ARK_VERSION_MAJOR + '0', ARK_VERSION_MINOR + '0', ARK_VERSION_PATCH + '0', 0x00 }; | ||
constexpr std::string_view ARK_VERSION { "@ARK_VERSION_MAJOR@.@ARK_VERSION_MINOR@.@ARK_VERSION_PATCH@" }; | ||
constexpr std::string_view ARK_FULL_VERSION { "@ARK_VERSION_MAJOR@.@ARK_VERSION_MINOR@.@ARK_VERSION_PATCH@-@ARK_COMMIT@" }; | ||
|
||
#define ARK_COMPILATION_OPTIONS "@CMAKE_CXX_FLAGS@" | ||
#define ARK_COMPILER "@CMAKE_CXX_COMPILER_ID@" | ||
#define ARK_CACHE_DIRNAME "__arkscript__" | ||
#define ARK_NO_NAME_FILE "FILE" | ||
|
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