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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 unset(PNACL_LLVM) 1 unset(PNACL_LLVM)
2 # Define PNACL_LLVM for LLVM_VERSION <= 3.7 2 # Define PNACL_LLVM for LLVM_VERSION <= 3.7
3 if((NOT LLVM_VERSION_MAJOR GREATER 3) AND (NOT LLVM_VERSION_MINOR GREATER 7)) 3 if((NOT LLVM_VERSION_MAJOR GREATER 3) AND (NOT LLVM_VERSION_MINOR GREATER 7))
4 set(PNACL_LLVM 1) 4 set(PNACL_LLVM 1)
5 endif() 5 endif()
6 6
7 if(PNACL_LLVM) 7 if(PNACL_LLVM)
8 add_definitions( 8 add_definitions(
9 -DPNACL_LLVM 9 -DPNACL_LLVM
10 ) 10 )
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 -DALLOW_TIMERS=1 45 -DALLOW_TIMERS=1
46 -DALLOW_MINIMAL_BUILD=0 46 -DALLOW_MINIMAL_BUILD=0
47 -DALLOW_WASM=0 47 -DALLOW_WASM=0
48 -DPNACL_BROWSER_TRANSLATOR=0 48 -DPNACL_BROWSER_TRANSLATOR=0
49 ) 49 )
50 add_compile_options(-Wno-undefined-var-template) 50 add_compile_options(-Wno-undefined-var-template)
51 endif() 51 endif()
52 52
53 execute_process(COMMAND git rev-parse HEAD 53 execute_process(COMMAND git rev-parse HEAD
54 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 54 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
55 OUTPUT_VARIABLE SUBZERO_REVISION 55 OUTPUT_VARIABLE SZ_GIT_HASH
56 OUTPUT_STRIP_TRAILING_WHITESPACE 56 OUTPUT_STRIP_TRAILING_WHITESPACE
57 ) 57 )
58 add_definitions(-DSUBZERO_REVISION=${SUBZERO_REVISION}) 58 execute_process(COMMAND git rev-list --count HEAD
59 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
60 OUTPUT_VARIABLE SZ_COMMIT_COUNT
61 OUTPUT_STRIP_TRAILING_WHITESPACE
62 )
63 add_definitions(-DSUBZERO_REVISION=${SZ_COMMIT_COUNT}_${SZ_GIT_HASH})
59 64
60 target_link_libraries(pnacl-sz pthread) 65 target_link_libraries(pnacl-sz pthread)
OLDNEW
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698