From 4d15523a74736fd0910bba92f8cd4551443827b3 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Mon, 6 Jan 2025 20:47:03 +0100 Subject: [PATCH] removes -g switch from toolchain file as it gets set when using Debug anyway, this way it wont be in Release or others --- cmake/rv32imc.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/rv32imc.cmake b/cmake/rv32imc.cmake index 0efd05a..b4bf50f 100644 --- a/cmake/rv32imc.cmake +++ b/cmake/rv32imc.cmake @@ -52,7 +52,6 @@ set( CMAKE_OBJCOPY ${RISCV_TOOLCHAIN_BIN_PATH}/${CROSS_COMPILE}objcopy set( CMAKE_OBJDUMP ${RISCV_TOOLCHAIN_BIN_PATH}/${CROSS_COMPILE}objdump CACHE FILEPATH "The toolchain objdump command " FORCE ) -set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g" ) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=${RISCV_ARCH} -mabi=${RISCV_ABI}" ) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "" )