[BUG REPORT] Dumplicated FLAGS from cmake files

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[BUG REPORT] Dumplicated FLAGS from cmake files

1,702 次查看
silent-dawn
Contributor II

Hi, 

I have tested this bug on the FRDM_K64F SDK 2.9.0 (Linux GCC).

When I tried to add some compiler options in the file tools/cmake_toolchain_files/armgcc.cmake once for all instead of editing every flags.cmake, I found the option will occur twice as the example below. In the example, you could find that the default optimization level option O3 occurs twice. However, some options could only occur once! I think the CMAKE files of SDK are configured incorrectly. Could you please check and fix this problem?

boards/frdmk64f/demo_apps/led_blinky/armgcc$ ./build_release.sh

boards/frdmk64f/demo_apps/led_blinky/armgcc$ grep -rn "O3"


CMakeCache.txt:324:CMAKE_CXX_FLAGS_RELEASE:INTERNAL=' -O3 -O3 '
CMakeCache.txt:342:CMAKE_C_FLAGS_RELEASE:INTERNAL=' -O3 -O3 '
Binary file CMakeFiles/led_blinky.elf.dir/home/lwq/mcu_sanitizer_K64F2.9.0/devices/MK64F12/drivers/fsl_clock.c.obj matches

标记 (1)
0 项奖励
1 回复

1,686 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @silent-dawn :

 

Thank you very much for your feedback.  I will create a ticket for this.

 

Regards

Daniel