Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bpftrace
Commits
eab36756
Commit
eab36756
authored
Jan 14, 2019
by
williangaspar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version.h removed
parent
61a46504
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
16 deletions
+3
-16
.gitignore
.gitignore
+0
-1
src/CMakeLists.txt
src/CMakeLists.txt
+2
-7
src/main.cpp
src/main.cpp
+1
-2
src/version.h.in
src/version.h.in
+0
-6
No files found.
.gitignore
View file @
eab36756
build/
build-*/
tests/runtime/*.pyc
/src/version.h
src/CMakeLists.txt
View file @
eab36756
...
...
@@ -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
src/main.cpp
View file @
eab36756
...
...
@@ -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
<<
"bpf
Trace "
<<
GIT_VERSION
<<
"
\n
"
<<
std
::
endl
;
std
::
cout
<<
"bpf
trace "
<<
BPFTRACE_VERSION
<<
"
\n
"
<<
std
::
endl
;
return
0
;
}
...
...
src/version.h.in
deleted
100644 → 0
View file @
61a46504
#ifndef VERSION_H
#define VERSION_H
#define GIT_VERSION "@GIT_VERSION@"
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment