diff options
| author | ruki <[email protected]> | 2021-10-15 23:18:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-15 23:18:52 +0800 |
| commit | 091e754eb4d5328385fed59d5c4f92e09355ff51 (patch) | |
| tree | 5231c613bfc83e71734a727934ad5ebc0c045bd1 /xmake/rules/c++/modules/xmake.lua | |
| parent | 8ca0e848506b052bcf107c0b65d2f9d04247de26 (diff) | |
load module deps
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 0e1e99d5d..ad36226eb 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -26,7 +26,7 @@ rule("c++.build.modules") if sourcebatches then local sourcebatch = sourcebatches["c++.build.modules"] if sourcebatch then - import("moduledeps").generate(target, sourcebatch, opt) + import("build_modules.module_parser").generate(target, sourcebatch, opt) end end end) @@ -38,11 +38,11 @@ rule("c++.build.modules") -- build module files with batchjobs local _, toolname = target:tool("cxx") if toolname:find("clang", 1, true) then - import("clang").build_with_batchjobs(target, batchjobs, sourcebatch, opt) + import("build_modules.clang").build_with_batchjobs(target, batchjobs, sourcebatch, opt) elseif toolname:find("gcc", 1, true) then - import("gcc").build_with_batchjobs(target, batchjobs, sourcebatch, opt) + import("build_modules.gcc").build_with_batchjobs(target, batchjobs, sourcebatch, opt) elseif toolname == "cl" then - import("msvc").build_with_batchjobs(target, batchjobs, sourcebatch, opt) + import("build_modules.msvc").build_with_batchjobs(target, batchjobs, sourcebatch, opt) else raise("compiler(%s): does not support c++ module!", toolname) end |
