Skip to content
Discussion options

You must be logged in to vote

Okay, I'm just a big idiot because this works...

function get_arch()
    local path = nil
    if is_arch("x86") then
        path = "x86"
    elseif is_arch("x64", "x86_64") then
        path = "x64"
    end

    return path
end

target("test")
    print(get_arch())

I was sure I'd tried that, but I must have made a typo in the function call.
How could I waste 2 hours looking for a simple solution?

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mactul
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
2 participants