[EXT_EP-9771] The option --preproc_dependency mishandles spaces in directory names Created: 06/Apr/20  Updated: 16/Nov/23

Status: Accepted
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Low
Reporter: TI User Assignee: TI User
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Generation Tools
Internal ID: CODEGEN-7388
Forum URL: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/894623
Found In Release: C2000_18.12.5.LTS
C2000_22.6.0.LTS
C2000_21.6.0.LTS
C2000_20.2.0.LTS
Affected Platform/Device: default

 Description   

The following commands are performed on Windows.

C:\work>type "dir with space"\file.c
int a;

C:\work>cl2000 --preproc_dependency "dir with space"\file.c

C:\work>type "dir with space\file.pp"
file.obj: dir\\ with\\ space\file.c

C:\work>gmake -f "dir with space\file.pp"
gmake: *** No rule to make target 'dir\', needed by 'file.obj'.  Stop.

C:\work>type "dir with space\corrected"
file.obj: dir\ with\ space/file.c

C:\work>gmake -f "dir with space\corrected"
gmake: Nothing to be done for 'file.obj'.

file.c is a toy C file. The file corrected was created by making a copy of file.pp, then changing it manually, in order to show one way the spaces in the directory name could be handled.


Generated at Thu Apr 03 04:42:52 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.