Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: CMakeLists.txt

Issue 2251153002: Subzero: Include commit count in revision string. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 542171d0a1e72d23aaa6cf8994e1a8fbc9ea2991..3c7b3afe98d354c237ce46c70553514b99703c51 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,9 +52,14 @@ endif()
execute_process(COMMAND git rev-parse HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- OUTPUT_VARIABLE SUBZERO_REVISION
+ OUTPUT_VARIABLE SZ_GIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
-add_definitions(-DSUBZERO_REVISION=${SUBZERO_REVISION})
+execute_process(COMMAND git rev-list --count HEAD
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ OUTPUT_VARIABLE SZ_COMMIT_COUNT
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+add_definitions(-DSUBZERO_REVISION=${SZ_COMMIT_COUNT}_${SZ_GIT_HASH})
target_link_libraries(pnacl-sz pthread)
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698