Skip to content

Commit

Permalink
Added commit ID to the version information
Browse files Browse the repository at this point in the history
  • Loading branch information
mike632t committed Feb 7, 2025
1 parent 6338009 commit 9d6bba6
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions mr.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# with RSS
#g++ -ggdb -flto -Ofast -fopenmp -fno-builtin -D NTVCM_RSS_SUPPORT -D NDEBUG -I . ntvcm.cxx x80.cxx -lssl -lcrypto -o ntvcm -static
COMMIT=$(git log -1 HEAD --format=%h 2> /dev/null)
BUILD=$(printf "%04d" "$(git rev-list --count HEAD 2> /dev/null)" )
#echo $COMMIT $BUILD
if [[ -z ${COMMIT} ]]; then
# with RSS
#g++ -ggdb -flto -Ofast -fopenmp -fno-builtin -D NTVCM_RSS_SUPPORT -D NDEBUG -I . ntvcm.cxx x80.cxx -lssl -lcrypto -o ntvcm -static
# without RSS
g++ -ggdb -flto -Ofast -fno-builtin -D NDEBUG -I . ntvcm.cxx x80.cxx -o ntvcm -static
else
# with RSS
#g++ -ggdb -flto -Ofast -fopenmp -fno-builtin -D NTVCM_RSS_SUPPORT -D COMMIT_ID="\" [Commit Id:$COMMIT]\"" -D DEBUG -I . ntvcm.cxx x80.cxx -lssl -lcrypto -o ntvcm -static
# without RSS
g++ -ggdb-flto -Ofast -fopenmp -fno-builtin -D BUILD="\".$BUILD\"" -D COMMIT_ID="\" [Commit Id:$COMMIT]\"" -D DEBUG -I . ntvcm.cxx x80.cxx -o ntvcm -static
fi


# without RSS
g++ -ggdb -flto -Ofast -fno-builtin -D NDEBUG -I . ntvcm.cxx x80.cxx -o ntvcm -static

0 comments on commit 9d6bba6

Please sign in to comment.