[BUG REPORT] Dumplicated FLAGS from cmake files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[BUG REPORT] Dumplicated FLAGS from cmake files

1,662 Views
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

Tags (1)
0 Kudos
1 Reply

1,646 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @silent-dawn :

 

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

 

Regards

Daniel