Skip to content
Discussion options

You must be logged in to vote
on_load(function (target)
    if target:has_tool("cxx", "cl", "clang_cl") then
        target:set("languages", "c++latest")
    elseif target:has_tool("cxx", "clang") then
        target:add("cxxflags", "-fmodules-ts", "-Wc++20-extensions")
    end
end)

Replies: 2 comments 13 replies

Comment options

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

@Latias94
Comment options

@waruqi
Comment options

@Latias94
Comment options

@waruqi
Comment options

Answer selected by Latias94
Comment options

You must be logged in to vote
1 reply
@Latias94
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
3 participants