Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ set(Python_INCLUDE_DIRS ${Python_INCLUDE_DIRS} "${Python_INCLUDE_DIRS}/internal"
set(ASMJIT_STATIC TRUE)
set(ASMJIT_NO_CUSTOM_FLAGS TRUE)
add_subdirectory(${PROJECT_SOURCE_DIR}/ThirdParty/asmjit asmjit)
target_compile_options(asmjit PRIVATE -Wno-class-memaccess)

########################################
# fmt
Expand Down Expand Up @@ -221,6 +222,8 @@ if (${ENABLE_DISASSEMBLER})
set(CAPSTONE_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(CAPSTONE_BUILD_CSTOOL OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(capstone)
target_compile_options(capstone PRIVATE -w)
target_compile_options(capstone_static PRIVATE -w)
endif()

##############################################################################
Expand Down Expand Up @@ -330,6 +333,7 @@ if (${PY_VERSION} EQUAL 3.12 OR ${PY_VERSION} EQUAL 3.14 OR ${PY_VERSION} EQUAL
endif()

add_library(jit ${JIT_SOURCES})
target_compile_options(jit PRIVATE -Wno-free-nonheap-object)
target_link_libraries(jit PRIVATE asmjit::asmjit interpreter fmt::fmt)
if (${ENABLE_DISASSEMBLER})
target_link_libraries(jit PRIVATE capstone_static)
Expand Down
2 changes: 2 additions & 0 deletions cinderx/Jit/disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ void Disassembler::setPrintInstBytes(bool) {}
} // namespace jit
#else
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wduplicate-enum"
#endif
#include "capstone/capstone.h"
#pragma GCC diagnostic pop

Expand Down
Loading