Closed kasjer closed 1 year ago
When package has source files specified by pkg.source_files: compiler flags are not passed correctly during build.
pkg.source_files:
For package files specified like this:
pkg.source_files: - src/adc_touch.c
Other files are build with correct command line arguments and adc_touch.c has less arguments that it should Correct file:
arm-none-eabi-gcc -DAPP_NAME=demo -DAPP_demo -DARCH_NAME=cortex_m33 -DARCH_cortex_m33 -DBSP_NAME=nordic_pca10095 -DBSP_nordic_pca10095 -DCFG_TUSB_MCU=OPT_MCU_NRF5X -DLCD_ITF_INCLUDE=<nordic_pca10095_defs.h> -DLV_CONF_INCL UDE_SIMPLE=1 -DMYNEWT=1 -DNRF5340_XXAA_APPLICATION -Og -Wall -Werror -Wno-error=uninitialized -fdata-sections -ffunction-sections -fno-common -fno-exceptions -ggdb -mcpu=cortex-m33+nodsp -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -mthumb-interwork -Ibin/targets/nordic_pca10095-display_test/generated/include
Failing file:
arm-none-eabi-gcc -DAPP_NAME=demo -DAPP_demo -DARCH_NAME=cortex_m33 -DARCH_cortex_m33 -DBSP_NAME=nordic_pca10095 -DBSP_nordic_pca10095 -DCFG_TUSB_MCU=OPT_MCU_NRF5X -DLCD_ITF_INCLUDE=<nordic_pca10095_defs.h> -DLV_CONF_INCL UDE_SIMPLE=1 -DMYNEWT=1 -DNRF5340_XXAA_APPLICATION -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Ibin/targets/nordic_pca10095-display_test/generated/include
Following options were not passed to comiler:
-Og -Wall -Werror -Wno-error=uninitialized -fdata-sections -ffunction-sections -fno-common -fno-exceptions -ggdb -mcpu=cortex-m33+nodsp
CMakeList.txt generated for same target does not have this issue though.
CMakeList.txt
@m-gorecki can you take a look at this issue
@m-gorecki verified to work. Thank you.
When package has source files specified by
pkg.source_files:
compiler flags are not passed correctly during build.For package files specified like this:
Other files are build with correct command line arguments and adc_touch.c has less arguments that it should Correct file:
Failing file:
Following options were not passed to comiler:
CMakeList.txt
generated for same target does not have this issue though.