diff options
Diffstat (limited to '3rdparty/genie/src/actions/fastbuild/fastbuild_project.lua')
-rw-r--r-- | 3rdparty/genie/src/actions/fastbuild/fastbuild_project.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/3rdparty/genie/src/actions/fastbuild/fastbuild_project.lua b/3rdparty/genie/src/actions/fastbuild/fastbuild_project.lua index ba0b98a4298..43b65de689c 100644 --- a/3rdparty/genie/src/actions/fastbuild/fastbuild_project.lua +++ b/3rdparty/genie/src/actions/fastbuild/fastbuild_project.lua @@ -15,6 +15,9 @@ -- Unicode = 1, -- Unsafe = 1, -- WinMain = 1, +-- API todo: +-- custombuildtask +-- dependency local function add_trailing_backslash(dir) if dir:len() > 0 and dir:sub(-1) ~= "\\" then @@ -108,6 +111,10 @@ local function compile(indentlevel, prj, cfg, commonbasepath) '/FS', } + if cfg.options.ForceCPP then + table.insert(compileroptions, '/TP') + end + if cfg.flags.ExtraWarnings then table.insert(compileroptions, '/W4') end @@ -420,10 +427,8 @@ function premake.fastbuild.project(prj) for _, file in ipairs(cppfiles) do commonbasepath = path.getcommonbasedir(commonbasepath..'/', file) end - -- These lines will allow fastbuild to keep the object files in the right folder hierarchy - -- without including everything underneath. - _p(1, ".CompilerInputPath = '%s/'", commonbasepath) - _p(1, ".CompilerInputPattern = 'ignoreall'") + + _p(1, ".CompilerInputFilesRoot = '%s/'", commonbasepath) _p(1, '.CompilerInputFiles = {') for _, file in ipairs(cppfiles) do _p(2, "'%s',", file) |