Skip to content

Commit

Permalink
use crypto3 targets for zkLLVM binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Jul 19, 2024
1 parent 8933672 commit eb86438
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ set(CPACK_PACKAGE_VERSION "${ZKLLVM_VERSION_MAJOR}.${ZKLLVM_VERSION_MINOR}.${ZKL
if(ZKLLVM_VERSION_INCREMENT)
string(APPEND CPACK_PACKAGE_VERSION "-${ZKLLVM_VERSION_INCREMENT}")
endif()
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/lib/zkllvm")
set(CPACK_PACKAGING_INSTALL_PREFIX "/var/empty/lib/zkllvm")

configure_file("${CMAKE_CURRENT_LIST_DIR}/cmake/zkllvm.conf.in"
"${CMAKE_CURRENT_BINARY_DIR}/zkllvm.conf"
Expand Down
4 changes: 1 addition & 3 deletions bin/assigner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ target_link_libraries(${CURRENT_PROJECT_NAME}
LLVMCore
LLVMSupport
crypto3::all
crypto3::assigner
crypto3::blueprint
${Boost_LIBRARIES})

target_include_directories(${CURRENT_PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
${CMAKE_SOURCE_DIR}/libs/circifier/llvm/include
${CMAKE_SOURCE_DIR}/libs/circifier/utils/bazel/llvm-project-overlay/llvm/include
${CMAKE_SOURCE_DIR}/libs/assigner/include
${CMAKE_BINARY_DIR}/libs/circifier/llvm/include
${Boost_INCLUDE_DIRS})

Expand Down
2 changes: 0 additions & 2 deletions bin/recursive_gen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ target_link_libraries(${CURRENT_PROJECT_NAME}
${Boost_LIBRARIES})

target_include_directories(${CURRENT_PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
${CMAKE_SOURCE_DIR}/libs/circifier/llvm/include
${CMAKE_SOURCE_DIR}/libs/circifier/utils/bazel/llvm-project-overlay/llvm/include
${CMAKE_BINARY_DIR}/libs/circifier/llvm/include
Expand Down
4 changes: 1 addition & 3 deletions bin/transpiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ target_link_libraries(${CURRENT_PROJECT_NAME}
crypto3::all
crypto3::blueprint
crypto3::assigner
crypto3::transpiler
${Boost_LIBRARIES})

target_include_directories(${CURRENT_PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
${CMAKE_SOURCE_DIR}/libs/circifier/llvm/include
${CMAKE_SOURCE_DIR}/libs/transpiler/include
${CMAKE_SOURCE_DIR}/libs/circifier/utils/bazel/llvm-project-overlay/llvm/include
${Boost_INCLUDE_DIRS})

Expand Down
2 changes: 1 addition & 1 deletion cmake/CheckSSE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ macro(check_sse)
endif(SSE42_TRUE)

elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
exec_program("/usr/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
exec_program("/var/empty/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
CPUINFO)

string(REGEX REPLACE "^.*[^S](SSE2).*$" "\\1" SSE_THERE "${CPUINFO}")
Expand Down
2 changes: 1 addition & 1 deletion cmake/create-symlinks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ list(APPEND LLVM_BINARIES clang llvm-link)

# Link directory would differ for cases when we have DESTDIR from CPack or simple installation
if (DEFINED ENV{DESTDIR})
set(LINK_DESTDIR $ENV{DESTDIR}/usr/bin)
set(LINK_DESTDIR $ENV{DESTDIR}/var/empty/bin)
else()
set(LINK_DESTDIR ${CMAKE_INSTALL_PREFIX}/bin)
endif()
Expand Down

0 comments on commit eb86438

Please sign in to comment.