|  | 
|  | 1 | +diff --git a/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt b/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt | 
|  | 2 | +index 0c5017c359d6..92777133e9de 100644 | 
|  | 3 | +--- a/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt | 
|  | 4 | ++++ b/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt | 
|  | 5 | +@@ -12,23 +12,23 @@ if(NOT DEFINED ITTAPI_SOURCE_DIR) | 
|  | 6 | +     set(ITTAPI_SOURCE_DIR ${PROJECT_BINARY_DIR}) | 
|  | 7 | + endif() | 
|  | 8 | + | 
|  | 9 | +-if(NOT EXISTS ${ITTAPI_SOURCE_DIR}/ittapi) | 
|  | 10 | +-    execute_process(COMMAND ${GIT_EXECUTABLE} clone ${ITTAPI_GIT_REPOSITORY} | 
|  | 11 | +-                    WORKING_DIRECTORY ${ITTAPI_SOURCE_DIR} | 
|  | 12 | ++if(NOT EXISTS ${ITTAPI_SOURCE_DIR}) | 
|  | 13 | ++    execute_process(COMMAND ${GIT_EXECUTABLE} clone ${ITTAPI_GIT_REPOSITORY} ${ITTAPI_SOURCE_DIR} | 
|  | 14 | ++                    WORKING_DIRECTORY ${ITTAPI_SOURCE_DIR}/.. | 
|  | 15 | +                     RESULT_VARIABLE GIT_CLONE_RESULT) | 
|  | 16 | +     if(NOT GIT_CLONE_RESULT EQUAL "0") | 
|  | 17 | +         message(FATAL_ERROR "git clone ${ITTAPI_GIT_REPOSITORY} failed with ${GIT_CLONE_RESULT}, please clone ${ITTAPI_GIT_REPOSITORY}") | 
|  | 18 | +     endif() | 
|  | 19 | +-endif() | 
|  | 20 | + | 
|  | 21 | +-execute_process(COMMAND ${GIT_EXECUTABLE} checkout ${ITTAPI_GIT_TAG} | 
|  | 22 | +-                WORKING_DIRECTORY ${ITTAPI_SOURCE_DIR}/ittapi | 
|  | 23 | +-                RESULT_VARIABLE GIT_CHECKOUT_RESULT) | 
|  | 24 | +-if(NOT GIT_CHECKOUT_RESULT EQUAL "0") | 
|  | 25 | +-    message(FATAL_ERROR "git checkout ${ITTAPI_GIT_TAG} failed with ${GIT_CHECKOUT_RESULT}, please checkout ${ITTAPI_GIT_TAG} at ${ITTAPI_SOURCE_DIR}/ittapi") | 
|  | 26 | ++    execute_process(COMMAND ${GIT_EXECUTABLE} checkout ${ITTAPI_GIT_TAG} | 
|  | 27 | ++                    WORKING_DIRECTORY ${ITTAPI_SOURCE_DIR} | 
|  | 28 | ++                    RESULT_VARIABLE GIT_CHECKOUT_RESULT) | 
|  | 29 | ++    if(NOT GIT_CHECKOUT_RESULT EQUAL "0") | 
|  | 30 | ++        message(FATAL_ERROR "git checkout ${ITTAPI_GIT_TAG} failed with ${GIT_CHECKOUT_RESULT}, please checkout ${ITTAPI_GIT_TAG} at ${ITTAPI_SOURCE_DIR}") | 
|  | 31 | ++    endif() | 
|  | 32 | + endif() | 
|  | 33 | + | 
|  | 34 | +-include_directories( ${ITTAPI_SOURCE_DIR}/ittapi/include/ ) | 
|  | 35 | ++include_directories( ${ITTAPI_SOURCE_DIR}/include/ ) | 
|  | 36 | + | 
|  | 37 | + if( HAVE_LIBDL ) | 
|  | 38 | +     set(LLVM_INTEL_JIT_LIBS ${CMAKE_DL_LIBS}) | 
|  | 39 | +@@ -40,7 +40,7 @@ set(LLVM_INTEL_JIT_LIBS ${LLVM_PTHREAD_LIB} ${LLVM_INTEL_JIT_LIBS}) | 
|  | 40 | + add_llvm_component_library(LLVMIntelJITEvents | 
|  | 41 | +   IntelJITEventListener.cpp | 
|  | 42 | +   jitprofiling.c | 
|  | 43 | +-  ${ITTAPI_SOURCE_DIR}/ittapi/src/ittnotify/ittnotify_static.c | 
|  | 44 | ++  ${ITTAPI_SOURCE_DIR}/src/ittnotify/ittnotify_static.c | 
|  | 45 | + | 
|  | 46 | +   LINK_LIBS ${LLVM_INTEL_JIT_LIBS} | 
|  | 47 | + | 
0 commit comments