summaryrefslogtreecommitdiff
path: root/support/CMakeLists.txt
diff options
context:
space:
mode:
authortongzongzhen <[email protected]>2024-11-25 18:30:06 +0800
committertongzongzhen <[email protected]>2024-11-25 18:30:06 +0800
commitcca5c53bb65ab8b6f5bdcdf331e6ecbbf03d14c5 (patch)
tree603c961c036939faac9bfd41de51e7a0f2609210 /support/CMakeLists.txt
parent41a2bc3b84d8d98e562f9fc4efd58361794899d5 (diff)
aarch64 version, allows compiling the debug version of dpdkHEADdev-4.8
Diffstat (limited to 'support/CMakeLists.txt')
-rw-r--r--support/CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/support/CMakeLists.txt b/support/CMakeLists.txt
index 4da503c..f0fca12 100644
--- a/support/CMakeLists.txt
+++ b/support/CMakeLists.txt
@@ -142,11 +142,14 @@ else()
endif()
set(DPDK_C_ARGS "['-DRTE_ETHDEV_PROFILE_WITH_VTUNE']")
-if((MACHINE STREQUAL ${AARCH64}) AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
- # arm unrecognized argument in option ‘-mcmodel=medium’
- # set(DPDK_C_ARGS "['-DRTE_ETHDEV_PROFILE_WITH_VTUNE','-mcmodel=large']")
- set(DPDK_BUILD_TYPE debugoptimized)
-endif()
+# Previously, when compiling the dpdk aarch64 debug version, "relocation truncated to fit" would be triggered.
+# However, this problem does not exist in the current environment.
+# Therefore, commenting out this code will ensure that the dpdk debug version can be compiled.
+# if((MACHINE STREQUAL ${AARCH64}) AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
+# # arm unrecognized argument in option ‘-mcmodel=medium’
+# # set(DPDK_C_ARGS "['-DRTE_ETHDEV_PROFILE_WITH_VTUNE','-mcmodel=large']")
+# set(DPDK_BUILD_TYPE debugoptimized)
+# endif()
message(STATUS "dpdk build machine: ${DPDK_MESON_MACHINE}")
message(STATUS "dpdk c args: ${DPDK_C_ARGS}")