Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持arch #40

Closed
wants to merge 1 commit into from
Closed

支持arch #40

wants to merge 1 commit into from

Conversation

MrChang0
Copy link

支持格式

    macos = {
        arm = {
            deps = "zlib-ng-arm",
        },
        x86_64 = {
            deps = "zlib-ng-x86",
        },
    },

支持格式
    macos = {
        arm = {
            deps = "zlib-ng-arm",
        },
        x86_64 = {
            deps = "zlib-ng-x86",
        },
    },
@actboy168
Copy link
Owner

递归大大增加了复杂性,arch也没重要到值得这么做。

你可以这些写

macos = {
        deps = {
            lm.arch == "arm" and "zlib-ng-arm",
            lm.arch == "x86_64" and "zlib-ng-x86",
        },
},

@MrChang0
Copy link
Author

我觉得这部分的递归还在可控范围之内。
目前涉及到这种复合情况的条件编写起来比较麻烦,如果使用嵌套结构作为配置可能更便于理解。

@MrChang0 MrChang0 closed this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants