removes -g switch from toolchain file as it gets set when using Debug anyway, this way it wont be in Release or others
This commit is contained in:
parent
e652e59dac
commit
4d15523a74
@ -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 "" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user