summaryrefslogtreecommitdiff
path: root/tests/actions/addon/custom-toolchain/src/toolchains/my-c6000/xmake.lua
blob: 9b023bac78559eff11107fc217b629460a9f288f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- a custom toolchain distributed as an addon
--
-- @see tests/apis/custom_toolchain for the same toolchain maintained inside a project,
-- distributing it as an addon is the recommended way
--
toolchain("my-c6000")
    set_kind("standalone")
    set_description("the custom toolchain of the tests")

    set_toolset("cc", "mycl6x")
    set_toolset("ld", "mycl6x")

    on_check(function (toolchain)
        return import("lib.detect.find_tool")("mycl6x")
    end)

    on_load(function (toolchain)
        toolchain:add("cxflags", "-DMY_C6000")
    end)