mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-04-28 03:39:48 +00:00
revert CMakeLists.txt to main: remove debug flags and cpptrace dep
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a789729923
commit
c4e88fb5af
1 changed files with 2 additions and 14 deletions
|
|
@ -27,7 +27,7 @@ option(KTRANSFORMERS_CPU_MOE_AMD "ktransformers: CPU use moe kernel for amd" OFF
|
|||
# LTO control
|
||||
option(CPUINFER_ENABLE_LTO "Enable link time optimization (IPO)" OFF)
|
||||
|
||||
project(kt_kernel_ext VERSION 0.5.0)
|
||||
project(kt_kernel_ext VERSION 0.5.3)
|
||||
|
||||
# Auto-detect CPU features early (unless building with LLAMA_NATIVE)
|
||||
if(NOT LLAMA_NATIVE AND NOT MSVC)
|
||||
|
|
@ -126,7 +126,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||
# Use header-only fmt to avoid needing to link libfmt (fix undefined symbol vprint)
|
||||
add_compile_definitions(FMT_HEADER_ONLY)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -ffast-math -g")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -ffast-math")
|
||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer")
|
||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
|
@ -692,15 +692,3 @@ if(NUMA_LIBRARY)
|
|||
else()
|
||||
message(FATAL_ERROR "NUMA library not found, please install NUMA, sudo apt install libnuma-dev")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
cpptrace
|
||||
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
|
||||
GIT_TAG v1.0.4
|
||||
)
|
||||
FetchContent_MakeAvailable(cpptrace)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE cpptrace::cpptrace)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue