Skip to content

Commit

Permalink
fix missing build variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Feb 4, 2024
1 parent 2728a2c commit ffe0768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xmake/rules/c++/modules/modules_support/clang/builder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function make_module_buildjobs(target, batchjobs, job_name, deps, opt)
local compinst = compiler.load("cxx", {target = target})
local compflags = compinst:compflags({sourcefile = opt.cppfile, target = target})

local build
if provide or compiler_support.has_module_extension(opt.cppfile) then
build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})

Expand Down Expand Up @@ -268,6 +269,7 @@ function make_module_buildcmds(target, batchcmds, opt)
local name, provide, _ = compiler_support.get_provided_module(opt.module)
local bmifile = provide and compiler_support.get_bmi_path(provide.bmi)

local build
if provide or compiler_support.has_module_extension(opt.cppfile) then
build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})

Expand Down
2 changes: 2 additions & 0 deletions xmake/rules/c++/modules/modules_support/msvc/builder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function make_module_buildjobs(target, batchjobs, job_name, deps, opt)
local compinst = compiler.load("cxx", {target = target})
local compflags = compinst:compflags({sourcefile = opt.cppfile, target = target})

local build
if provide or compiler_support.has_module_extension(opt.cppfile) then
build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})

Expand Down Expand Up @@ -280,6 +281,7 @@ function make_module_buildcmds(target, batchcmds, should_build, mark_build, opt)
local name, provide, _ = compiler_support.get_provided_module(opt.module)
local bmifile = provide and compiler_support.get_bmi_path(provide.bmi)

local build
if provide or compiler_support.has_module_extension(opt.cppfile) then
build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})

Expand Down

0 comments on commit ffe0768

Please sign in to comment.