Skip to content

Commit 85dcc74

Browse files
committed
sync : resolve conflicts (ggml/0)
ggml-ci
1 parent 915fc15 commit 85dcc74

File tree

6 files changed

+195
-113
lines changed

6 files changed

+195
-113
lines changed

ggml/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@ write_basic_package_version_file(
360360
VERSION ${GGML_INSTALL_VERSION}
361361
COMPATIBILITY SameMajorVersion)
362362

363+
target_compile_definitions(ggml-base PRIVATE
364+
GGML_VERSION="${GGML_INSTALL_VERSION}"
365+
GGML_COMMIT="${GGML_BUILD_COMMIT}"
366+
)
367+
message(STATUS "ggml version: ${GGML_INSTALL_VERSION}")
368+
message(STATUS "ggml commit: ${GGML_BUILD_COMMIT}")
369+
363370
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ggml-config.cmake
364371
${CMAKE_CURRENT_BINARY_DIR}/ggml-version.cmake
365372
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ggml)

ggml/include/ggml.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,9 @@ extern "C" {
648648

649649
// misc
650650

651+
GGML_API const char * ggml_version(void);
652+
GGML_API const char * ggml_commit(void);
653+
651654
GGML_API void ggml_time_init(void); // call this once at the beginning of the program
652655
GGML_API int64_t ggml_time_ms(void);
653656
GGML_API int64_t ggml_time_us(void);

0 commit comments

Comments
 (0)