fix: date version compile error and warnings

This commit is contained in:
Makiras 2025-03-04 10:37:52 +08:00 committed by Makiras
parent 9c72295cdc
commit 031766bd39
3 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@ macro(get_git_hash _git_hash)
find_package(Git QUIET)
if(GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} log -1 --date=short --pretty=format:"%h-%cd"
COMMAND ${GIT_EXECUTABLE} log -1 --date=short --pretty=format:%h-%cd
OUTPUT_VARIABLE ${_git_hash}
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

View File

@ -1,4 +1,3 @@
#pragma once
#include "parser/internalcfg.hpp"
int main()

View File

@ -1,4 +1,3 @@
#pragma once
#include "parser/verilator_root.hpp"
using namespace std;