Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Switch to python3, resolve issue with differences in encrypt in python3
Browse files Browse the repository at this point in the history
Change-Id: Ic6105abb59030960ed8bf9a16a30cfd90b0a4742
  • Loading branch information
matborzyszkowski committed Jul 8, 2020
1 parent 0e35a4a commit 5005890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Expand Up @@ -33,13 +33,12 @@ cmake_minimum_required(VERSION 3.4.3)
if(BS_USE_OSDM_BUILD_SYSTEM)
include(${BUILD_SYS_INC}/utils.cmake)
bs_find_patch()
bs_find_python2()
else()
if (NOT PATCH)
find_program(PATCH NAMES patch patch.exe)
endif()
if (NOT PYTHON)
find_program(PYTHON NAMES python2 python python2.exe python.exe)
find_program(PYTHON NAMES python3 python python3.exe python.exe)
endif()
endif()

Expand Down
Expand Up @@ -16,7 +16,7 @@ diff -Naur --strip-trailing-cr a/utils/llvm-build/llvmbuild/main.py b/utils/llvm
- ${CMAKE_CURRENT_BINARY_DIR}/DummyConfigureOutput)\n""" % (
- cmake_quote_path(dep),))
+ ${CMAKE_CURRENT_BINARY_DIR}/DummyConfigureOutput/%s)\n""" % (
+ cmake_quote_path(dep),hashlib.sha1(dep).hexdigest()))
+ cmake_quote_path(dep),hashlib.sha1(dep.encode('utf-8')).hexdigest()))

# Write the properties we use to encode the required library dependency
# information in a form CMake can easily use directly.
Expand Down

0 comments on commit 5005890

Please sign in to comment.