fix ~ allow `nil` taskmenu (may be empty for xmake recipes with solely internal tasks)
@@ -446,7 +446,9 @@ function option.defaults(task)
-- get the default options for the given task
local defaults = {}
+ if taskmenu then
option.populate_defaults(taskmenu.options, defaults)
+ end
return defaults
end
