Skip to content

Commit

Permalink
Update plugify and change string and vector allocation
Browse files Browse the repository at this point in the history
removing heap from string and vector allocations + update generator
  • Loading branch information
qubka committed Nov 3, 2024
1 parent 7b32be0 commit 7d3ee1c
Show file tree
Hide file tree
Showing 9 changed files with 1,946 additions and 1,328 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ endif()
# Plugify
#
set(PLUGIFY_BUILD_SHARED_LIB ON CACHE INTERNAL "")
set(PLUGIFY_BUILD_FUNCTION ON CACHE INTERNAL "")
set(PLUGIFY_BUILD_JIT ON CACHE INTERNAL "")
set(PLUGIFY_BUILD_ASSEMBLY ON CACHE INTERNAL "")
set(PLUGIFY_BUILD_TESTS OFF CACHE INTERNAL "")
set(PLUGIFY_DOWNLOADER OFF CACHE INTERNAL "")
if(LINUX)
set(PLUGIFY_USE_STATIC_STDLIB ON CACHE INTERNAL "")
endif()
Expand All @@ -40,12 +42,12 @@ include(cmake/dyncall.cmake)
# Go Language Module for Plugify
#
file(GLOB_RECURSE GOLM_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.cpp")
set(GOLM_PCH_FILE "src/pch.h")
set(GOLM_PCH_FILE "src/pch.hpp")

add_library(${PROJECT_NAME} SHARED ${GOLM_SOURCES})
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)

set(GOLM_LINK_LIBRARIES plugify::plugify plugify::plugify-assembly asmjit::asmjit dyncall_s dyncallback_s)
set(GOLM_LINK_LIBRARIES plugify::plugify plugify::plugify-assembly plugify::plugify-jit asmjit::asmjit dyncall_s)

if(NOT COMPILER_SUPPORTS_FORMAT)
set(GOLM_LINK_LIBRARIES ${GOLM_LINK_LIBRARIES} fmt::fmt-header-only)
Expand Down
2 changes: 1 addition & 1 deletion external/plugify
Submodule plugify updated 182 files
Loading

0 comments on commit 7d3ee1c

Please sign in to comment.