Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,105
    • Issues 4,105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #19459
Closed
Open
Issue created Jul 08, 2019 by Erich Schroeter@erichschroeter

TI cl2000 compiler C++ compiler id

I have a Stackoverflow question open trying to get TI's cl2000.exe to cross-compile for me. After spending quite some time digging into this, I think the issue is that the "simple test program" produces command line output that is not compatible with the cl2000.exe.

The cl2000.exe states:

By default, the compiler program places the object, assembly, and temporary files that it creates into the current directory.

It provides options to customize where generated output is placed:

--abs_directory=directory Specifies the destination directory for absolute listing files. The default is to use the same directory as the object file directory.
--asm_directory=directory Specifies a directory for assembly files.
--list_directory=directory Specifies the destination directory for assembly listing files and crossreference listing files. The default is to use the same directory as the object file directory.
--obj_directory=directory Specifies a directory for object files.
--output_file=filename Specifies a compilation output file name; can override --obj_directory .
--pp_directory=directory Specifies a preprocessor file directory for object files (default is .).
--temp_directory=directory Specifies a directory for temporary intermediate files.

The problem is that the "simple test program" appears to use a random generated temporary directory.

C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000.exe   -eo=cxx.obj   -o CMakeFiles/cmTC_088ed.dir/testCXXCompiler.cxx.obj -c "C:/src/company/myproj/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx"
C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000.exe   -eo=cxx.obj   -z  "CMakeFiles/cmTC_088ed.dir/testCXXCompiler.cxx.obj"   -o cmTC_088ed

I think what I need to be able to customize where the testCXXCompiler.cxx.obj is generated instead of rely on the use of the relative directory:

C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000.exe   -eo=cxx.obj   -o "C:/src/company/myproj/build/CMakeFiles/cmTC_088ed.dir/testCXXCompiler.cxx.obj" -c "C:/src/company/myproj/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx"
C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000.exe   -eo=cxx.obj   -z  "C:/src/company/myproj/build/CMakeFiles/cmTC_088ed.dir/testCXXCompiler.cxx.obj"   -o cmTC_088ed

Is it possible to customize the temporary directory for the "simple test program", or is there another solution to make cl2000.exe compatible with CMake?

Edited Jul 09, 2019 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking