You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
390 B
11 lines
390 B
rule("lsp.msvc_inc_inject")
|
|
on_load(function (target)
|
|
local includepaths = os.getenv("INCLUDE")
|
|
if includepaths then
|
|
for _, _path in ipairs(includepaths:split(";")) do
|
|
if (string.find(_path, "VC") or string.find(_path, "ucrt")) then
|
|
target:add("includedirs", _path)
|
|
end
|
|
end
|
|
end
|
|
end)
|