View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012521 | CMake | CMake | public | 2011-10-16 07:52 | 2016-06-10 14:31 | ||||
Reporter | Bernhard Sputh | ||||||||
Assigned To | Alex Neundorf | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | moved | ||||||
Platform | XMOS | OS | MS-Windows | OS Version | 7 | ||||
Product Version | CMake 2.8.5 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012521: XMOS Toolchain Support | ||||||||
Description | I've written support basic support files for the XMOS-toolchain [1] running on top of MS-Windows 7 (linux should work as well, but I've not yet tested this). To get the Assembler supported in the XMOS toolchain the following three lines have to be inserted into the file CMakeDetermingASMCompiler.cmake: LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS XMOS ) SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_XMOS "--version") SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_XMOS "XMOS Limited") The actual compiler support is based on the GNU.cmake files provided by CMake, due to the XMOS toolchain being based on LLVM, which in turn is based on GCC, at least when it comes to the command line options. Since C++ is not supported by the XMOS toolchain, I've created a file that aborts the build, to prevent trouble later. Find the following files attached: - XMOS.cmake: A slightly adjusted GNU.cmake - XMOS-ASM.cmake: Setting the file extensions for XMOS assembler. - XMOS-C.cmake: A slightly adjusted GNU-C.cmake. - XMOS-CXX.cmake: The file that prevents accidential inclusion of C++ in an XMOS project. - CMakeDetermingASMCompiler.cmake: My modified version of the file Due to the XMOS toolchain not being able to compile without having been given a valid topology, which is project specific, I force the compiler in my toolchain files. I use the following lines to connect to the XMOS toolchain: INCLUDE(CMakeForceCompiler) CMAKE_FORCE_C_COMPILER(xcc XMOS) CMAKE_FORCE_CXX_COMPILER(xcc XMOS) Keep in mind that this is early days for the toolchain support, it will be extended in the future. [1] https://www.xmos.com/products/development-tools [^] | ||||||||
Additional Information | Only tested under MS-Windows and with CMake 2.8.5, and the XMOS toolchain version 11.2.2 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | XMOS-Toolchain.zip [^] (5,224 bytes) 2011-10-16 07:52 | ||||||||
Relationships | |
Relationships |
Notes | |
(0030573) Alex Neundorf (developer) 2012-08-13 14:31 |
I won't be able to work on this for 2.8.10. |
(0041918) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-10-16 07:52 | Bernhard Sputh | New Issue | |
2011-10-16 07:52 | Bernhard Sputh | File Added: XMOS-Toolchain.zip | |
2011-10-16 07:57 | Alex Neundorf | Assigned To | => Alex Neundorf |
2011-10-16 07:57 | Alex Neundorf | Status | new => assigned |
2012-08-13 14:31 | Alex Neundorf | Note Added: 0030573 | |
2012-08-13 14:31 | Alex Neundorf | Status | assigned => backlog |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041918 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |