diff options
| author | tongzongzhen <[email protected]> | 2024-07-25 10:30:10 +0800 |
|---|---|---|
| committer | tongzongzhen <[email protected]> | 2024-07-25 10:30:10 +0800 |
| commit | 38039049b6896bf1fdb151062838a723f2b24e8a (patch) | |
| tree | 46b98db9c27f869ddf6cdaa97e741b547c0651bb /support | |
| parent | 76c0d159c2a85af96cef9fff39285bb3280cb16e (diff) | |
Modify cmake to build the binary file of znver4-O3
The MACHINE variable is set to znver4.
CMAKE_BUILD_TYPE command line setting allows to set it to release, if not set use the default value.
When decoding messagepack, the route_ctx number size is set to 128 to avoid false positive warnings in the gcc13 case.
Diffstat (limited to 'support')
| -rw-r--r-- | support/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/CMakeLists.txt b/support/CMakeLists.txt index 7da7ce8..2c43f8c 100644 --- a/support/CMakeLists.txt +++ b/support/CMakeLists.txt @@ -129,9 +129,12 @@ execute_process(COMMAND cat ${DPDK_PATCH_FILES} OUTPUT_FILE ${MERGED_PATCH_FILE} if(CMAKE_BUILD_TYPE STREQUAL "Debug") set(DPDK_BUILD_TYPE debug) +elseif(CMAKE_BUILD_TYPE STREQUAL "Release") + set(DPDK_BUILD_TYPE release) else() set(DPDK_BUILD_TYPE debugoptimized) endif() +message(STATUS "dpdk build type: ${DPDK_BUILD_TYPE}") set(DPDK_MESON_DISABLED_DRIVERS "common/cpt,common/dpaax,common/octeontx,common/octeontx2,common/sfc_efx,\ common/qat,bus/dpaa,bus/fslmc,bus/ifpga,bus/vmbus,mempool/bucket,mempool/dpaa,\ |
