Cmake and Ninja generates rules which are not compatible with compiler tiarmclang rel1_3_0_LTS
Hi, I have issue , we are using cmake ver_3.16.6 , ninja ver_1.10.1, TI compiler and compiler tiarmclang rel1_3_0_LTS.
on --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\MCAL\CddIpc\src --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\MCAL\Eth\include --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\MCAL\Eth\src --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\MCAL\Eth\src\cpsw --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\MCAL\Eth\src\cpsw\include --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\MCAL\Bsw_Stubs\MemMap\inc --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\Applications\VSB --include_path=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\Applications\VSB\Generated -mcpu=cortex-r5 -march=armv7-m -x c -S -std=c99 -O0 -g -mlittle-endian -mfpu=vfpv3-d16 -ffp-model=strict -o=elf -gdwarf-3 -DBOOT_OSPI -DSOC_J721E -Dj721e_hyd=j721e_hyd -DAUTOSAR_431 -DSBL_LOG_LEVEL=2 -DBOOT_TASK_ENABLED -DBUILD_MCU1_0 -DBUILD_MCU -DMPU1_HLOS_BOOT_ENABLED -DQNX_OS -fdiagnostics-show-option --preproc_with_compile --preproc_dependency=CMakeFiles\VW_L2H5050_MIK_Application.elf.dir\Applications\GenData\ComM_Lcfg.c.obj.d --output_file=CMakeFiles\VW_L2H5050_MIK_Application.elf.dir\Applications\GenData\ComM_Lcfg.c.obj tiarmclang: error: unsupported option '--compile_only' tiarmclang: error: unsupported option '--c_file=C:\GIT_Repo\L2H5050_Software\L2H5050_Software\pkg\Applications\GenData\ComM_Lcfg.c' tiarmclang: error: unsupported option '--preproc_with_compile' tiarmclang: error: unsupported option '--preproc_dependency=CMakeFiles\VW_L2H5050_MIK_Application.elf.dir\Applications\GenData\ComM_Lcfg.c.obj.d' tiarmclang: error: unsupported option '--output_file=CMakeFiles\VW_L2H5050_MIK_Application.elf.dir\Applications\GenData\ComM_Lcfg.c.obj'
tiarmclang doenst support --compile_only,--preproc_with_compile and --preproc_dependency. what do I need to chnage so that Ninja rule will not genarate above options.
see below ninja rule. tiarmclang.exe --compile_only --c_file=$in $DEFINES $INCLUDES FLAGS --preproc_with_compile --preproc_dependency=
DEP_FILE --output_file=$out
what needs to be done in order to remove extrs options from Ninja generated rules