Skip to content
Discussion options

You must be logged in to vote

多谢指导😀,搞定了,服务端的~/.xmake/service/server.conf中添加

toolchains = {
	cross1 = {
		sdkdir = "/path/to/a"
	}
}

然后创建文件夹~/.xmake/toolchains/cross1,再在里面创建一个xmake.lua,内容如下:

toolchains("cross1")
    set_kind("cross")

然后客户端

xmake f -p cross --toolchain=cross1 --sdk=/path/to/a
xmake

即可。

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@waruqi
Comment options

@nonkr
Comment options

@waruqi
Comment options

@nonkr
Comment options

Answer selected by nonkr
@nonkr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants