From 845d574544ea56de5cecb7a10a2e53108bb5cc3e Mon Sep 17 00:00:00 2001 From: ouguoyu Date: Mon, 22 Jan 2024 17:02:10 +0800 Subject: [PATCH 1/2] [misc] add include path for python build --- python/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 3dd281721..2538ca756 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -94,6 +94,7 @@ target_link_libraries(pypplnn_shared PUBLIC ${PYTHON3_LIBRARIES} PRIVATE pplnn_static ${PPLNN_SOURCE_EXTERNAL_PYTHON_LINK_LIBRARIES}) target_include_directories(pypplnn_shared PRIVATE + ${CMAKE_CURRENT_LIST_DIR} ${PROJECT_SOURCE_DIR}/include ${pybind11_SOURCE_DIR}/include ${PPLNN_SOURCE_EXTERNAL_PYTHON_INCLUDE_DIRECTORIES} From 961ce3dcc7c4a68d499af31a8561ae3a459ba8e5 Mon Sep 17 00:00:00 2001 From: ouguoyu Date: Mon, 22 Jan 2024 17:03:25 +0800 Subject: [PATCH 2/2] [misc] tools: remove version of default `clang-format` path --- tools/format-modified-files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/format-modified-files.sh b/tools/format-modified-files.sh index d3e62a7ba..bc26d04fa 100755 --- a/tools/format-modified-files.sh +++ b/tools/format-modified-files.sh @@ -4,7 +4,7 @@ echo "usage example: [FORMATTER='/path/to/formatter --option foo'] ./tools/forma echo '---------------------------------------' if [ -z "$FORMATTER" ]; then - default_formatter='/usr/bin/clang-format-12' + default_formatter='/usr/bin/clang-format' if ! [ -f ${default_formatter} ]; then echo "FORMATTER is not set." >&2 exit -1