Add --version and -V

This commit is contained in:
Christoffer Lerno
2021-05-15 03:20:41 +02:00
committed by Christoffer Lerno
parent 729e26d37c
commit 87a91b25e5
5 changed files with 30 additions and 8 deletions

View File

@@ -5,7 +5,6 @@
#include "compiler_tests/tests.h"
#include "utils/lib.h"
static int version = 102;
int main(int argc, const char *argv[])
{
// First setup memory
@@ -13,7 +12,7 @@ int main(int argc, const char *argv[])
DEBUG_LOG("Version: %d", version);
DEBUG_LOG("Version: %s", COMPILER_VERSION);
// Parse arguments.