Skip to content

Commit

Permalink
fix protobuf rule
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 4, 2024
1 parent 392bfd7 commit 6c973f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/rules/protobuf/proto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ end
function load(target, sourcekind)

local sourcebatch = target:sourcebatches()[sourcekind == "cxx" and "protobuf.cpp" or "protobuf.c"]
for _, sourcefile_proto in ipairs(sourcebatch.sourcefiles) do
for _, sourcefile_proto in ipairs(sourcebatch and sourcebatch.sourcefiles) do
local prefixdir
local autogendir
local public
Expand Down

0 comments on commit 6c973f5

Please sign in to comment.