You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
417 B
11 lines
417 B
|
|
if(CONFIG_ARCH_DPFPU)
|
|
message(STATUS "Enabling double FP precision hardware instructions")
|
|
set(cpu_flags "-march=rv64gc -mabi=lp64d -mcmodel=medany")
|
|
else()
|
|
set(cpu_flags "-march=rv64imac -mabi=lp64 -mcmodel=medany")
|
|
endif()
|
|
|
|
set(CMAKE_C_FLAGS "${cpu_flags}" CACHE STRING "" FORCE)
|
|
set(CMAKE_CXX_FLAGS "${cpu_flags}" CACHE STRING "" FORCE)
|
|
set(CMAKE_ASM_FLAGS "${cpu_flags} -D__ASSEMBLY__" CACHE STRING "" FORCE)
|
|
|