Skip to content

Commit

Permalink
Handle buildaction "None".
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Dec 11, 2023
1 parent 3077d47 commit 2a540a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ninja.lua
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ local function compile_file_build(cfg, filecfg, toolset, pch_dependency, regular
local filepath = project.getrelative(cfg.workspace, filecfg.abspath)
local has_custom_settings = fileconfig.hasFileSettings(filecfg)

if shouldcompileasc(filecfg) then
if filecfg.buildaction == "None" then
return
elseif shouldcompileasc(filecfg) then
local objfilename = obj_dir .. "/" .. filecfg.objname .. (toolset.objectextension or ".o")
objfiles[#objfiles + 1] = objfilename
local cflags = {}
Expand Down

0 comments on commit 2a540a1

Please sign in to comment.