Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5/src/tools/msc.lua
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | -- | ||||
function msc.getrunpathdirs() | function msc.getrunpathdirs() | ||||
return {} | return {} | ||||
end | end | ||||
-- | -- | ||||
-- Decorate include file search paths for the MSVC command line. | -- Decorate include file search paths for the MSVC command line. | ||||
-- | -- | ||||
function msc.getincludedirs(cfg, dirs, sysdirs) | function msc.getincludedirs(cfg, dirs, sysdirs, aftersysdirs) | ||||
local result = {} | local result = {} | ||||
dirs = table.join(dirs, sysdirs) | dirs = table.join(dirs, sysdirs) | ||||
for _, dir in ipairs(dirs) do | for _, dir in ipairs(dirs) do | ||||
dir = project.getrelative(cfg.project, dir) | dir = project.getrelative(cfg.project, dir) | ||||
table.insert(result, '-I' .. p.quoted(dir)) | table.insert(result, '-I' .. p.quoted(dir)) | ||||
wraitii: From the VS reference, it seems you should add the aftersysdirs to the INCLUDE env variable for… | |||||
Not Done Inline ActionsI've given it a go, but I've no way of testing that its correct. s0600204: I've given it a go, but I've no way of testing that its correct. | |||||
end | end | ||||
for _, dir in ipairs(aftersysdirs) do | |||||
dir = project.getrelative(cfg.project, dir) | |||||
table.insert(result, '/INCLUDE:"' .. dir .. '"') | |||||
end | |||||
Not Done Inline ActionsProbably incorrect since "flags" isn't defined... But TBH from what I can tell this is not called anywhere in premake5. I guess just revert and don't try for now. wraitii: Probably incorrect since "flags" isn't defined... But TBH from what I can tell this is not… | |||||
return result | return result | ||||
end | end | ||||
-- | -- | ||||
-- Return a list of linker flags for a specific configuration. | -- Return a list of linker flags for a specific configuration. | ||||
-- | -- | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
From the VS reference, it seems you should add the aftersysdirs to the INCLUDE env variable for a similar effect: https://docs.microsoft.com/en-us/cpp/build/reference/i-additional-include-directories?view=msvc-160