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?