Commit eab36756 authored by williangaspar's avatar williangaspar

version.h removed

parent 61a46504
build/
build-*/
tests/runtime/*.pyc
/src/version.h
......@@ -34,13 +34,8 @@ endif()
execute_process(
COMMAND git describe --abbrev=4 --dirty --always --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_VERSION
OUTPUT_VARIABLE BPFTRACE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_definitions("-DVERSION=${GIT_VERSION}")
configure_file(
${CMAKE_SOURCE_DIR}/src/version.h.in
${CMAKE_SOURCE_DIR}/src/version.h
)
add_definitions("-DBPFTRACE_VERSION=\"${BPFTRACE_VERSION}\"")
\ No newline at end of file
......@@ -12,7 +12,6 @@
#include "printer.h"
#include "semantic_analyser.h"
#include "tracepoint_format_parser.h"
#include "version.h"
using namespace bpftrace;
......@@ -78,7 +77,7 @@ int main(int argc, char *argv[])
if (argc > 1 && strcmp(argv[1], "--version") == 0)
{
std::cout << "bpfTrace " << GIT_VERSION << "\n" << std::endl;
std::cout << "bpftrace " << BPFTRACE_VERSION<< "\n" << std::endl;
return 0;
}
......
#ifndef VERSION_H
#define VERSION_H
#define GIT_VERSION "@GIT_VERSION@"
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment