Skip to content

如何在target作用域下获取target名? #1457

Answered by xq114
pingsoli asked this question in Q&A
Discussion options

You must be logged in to vote

可以用局域变量:

local name = "xxxx"
target(name)
	add_files("../build/" .. name .. ".S")

或者在before_build里面去做

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by waruqi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1456 on June 18, 2021 08:55.