fix(build): add kconfig support for fortified toolchains

This commit is contained in:
Onur Özkan
2026-03-31 22:23:50 -08:00
committed by GitHub
parent 94580ab1e5
commit 7d392394dd
6 changed files with 40 additions and 7 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ px4_add_module(
COMPILE_FLAGS
#-DCANARD_ASSERT
-DUINT32_C\(x\)=__UINT32_C\(x\)
-O0
${PX4_DEBUG_OPT_LEVEL}
${DRIVERS_CYPHAL_OPTIONS}
INCLUDES
${LIBCANARD_DIR}/libcanard/
+1 -1
View File
@@ -57,5 +57,5 @@ target_compile_options(world_magnetic_model PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
if(BUILD_TESTING)
px4_add_unit_gtest(SRC test_geo_lookup.cpp LINKLIBS world_magnetic_model)
target_compile_options(unit-test_geo_lookup PRIVATE -O0 -Wno-double-promotion)
target_compile_options(unit-test_geo_lookup PRIVATE ${PX4_DEBUG_OPT_LEVEL} -Wno-double-promotion)
endif()