[BUG REPORT] Dumplicated FLAGS from cmake files

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[BUG REPORT] Dumplicated FLAGS from cmake files

1,703件の閲覧回数
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,687件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @silent-dawn :

 

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

 

Regards

Daniel