Tool/software: TI C/C++ Compiler
Hi,
I am building the executable outside Code Composer Studio. I am trying to use the dependency option (preproc_dependency) of compiler to build the executable. Some of the files which I am referring is in the path with spaces (L:\Workspace\Bugs\BuildIssue\Folder withSpace\SimpleBuild_1_ert_rtw\MW_c28xx_board.c). In the make file I use transformed path for the same (L:/Workspace/Bugs/BuildIssue/FOLDER~1/SimpleBuild_1_ert_rtw/MW_c28xx_board.c).
I face build issue when I use the dependency option as the dependency option that is generated has the path with spaces that uses wrong escape sequence. Here is the sample path that is generated with wrong escape sequence.
MW_c28xx_board.obj: L:/Workspace/Bugs/BuildIssue/Folder\\ withSpace/SimpleBuild_1_ert_rtw/MW_c28xx_board.c
In the above path \\ is the escape sequence generated for the folder with space which causes build failure as below
gmake: *** No rule to make target `L:/Workspace/Bugs/BuildIssue/Folder\', needed by `MW_c28xx_board.obj'. Stop.
Ideally the escape sequence should be single \ instead of \\. So if I update the dependency files with the following, the build just work fine.
MW_c28xx_board.obj: L:/Workspace/Bugs/BuildIssue/Folder\ withSpace/SimpleBuild_1_ert_rtw/MW_c28xx_board.c
The escape sequence was added after I raised issue for compiler version ti-cgt-c2000_16.9.2.LTS. The current compiler version I am using is ti-cgt-c2000_18.12.2.LTS. Can you check on this and let me know what can be done to solve the issue?
Thanks,
Aditya