Skip to content

Removing Toolchain Submodule #452

@xmos-jmccarthy

Description

@xmos-jmccarthy

Thank you for submitting an SDK feature request. Please provide as much information you can.

Describe the feature
It is possible to use cmake to fetch a toolchain file. This must be done before any project is declared.

include(FetchContent)
FetchContent_Declare(xmos_cmake_toolchain
GIT_REPOSITORY https://github.com/xmos/xmos_cmake_toolchain.git
GIT_TAG origin/main
)

FetchContent_MakeAvailable(xmos_cmake_toolchain)

project(...)

Will this change any current APIs? How?
Top level cmake command arg CMAKE_TOOLCHAIN_FILE value would change from xmos_cmake_toolchain/xs3a.cmake to _deps/xmos_cmake_toolchain-src/xs3a.cmake

Who will benefit with this feature?

Any Other info

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions