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

Unified Diff: CMakeLists.txt

Issue 2247253005: Subzero: Fix build errors with LLVM trunk. (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 | src/IceCfg.cpp » ('j') | src/IceTargetLoweringX86BaseImpl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc0175c12910fcef6d439ffe44e9f7963a2360d7..542171d0a1e72d23aaa6cf8994e1a8fbc9ea2991 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,4 +50,11 @@ else()
add_compile_options(-Wno-undefined-var-template)
endif()
+execute_process(COMMAND git rev-parse HEAD
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ OUTPUT_VARIABLE SUBZERO_REVISION
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+add_definitions(-DSUBZERO_REVISION=${SUBZERO_REVISION})
+
target_link_libraries(pnacl-sz pthread)
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | src/IceTargetLoweringX86BaseImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698