summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}")