The option --preproc_dependency mishandles spaces in directory names

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • Code Generation Tools
    • CODEGEN-7388
    • Hide
      C2000_18.12.5.LTS
      C2000_22.6.0.LTS
      C2000_25.11.0.LTS
      C2000_21.6.0.LTS
      C2000_20.2.0.LTS
      Show
      C2000_18.12.5.LTS C2000_22.6.0.LTS C2000_25.11.0.LTS C2000_21.6.0.LTS C2000_20.2.0.LTS
    • default

      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.

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-2277 - The option --preproc_dependency mis...
                SYNCHRONIZED
                • Last Sync Date: