summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-02-05 17:30:32 +0100
committerArthur LAURENT <[email protected]>2024-02-05 17:30:32 +0100
commit6739478d0bf6a4aaf0d1a1caf1c6b60532fa07f8 (patch)
tree8e1f4493b63876a0e9c33d0845aa6b7bbefa886b /xmake/rules/c++/modules/xmake.lua
parentcf0e793a7cee0e1225c307473794245529cbc302 (diff)
fix gcc
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index c8385da03..62fb37205 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -98,8 +98,8 @@ rule("c++.build.modules.builder")
compiler_support.patch_sourcebatch(target, sourcebatch, opt)
local modules = dependency_scanner.get_module_dependencies(target, sourcebatch, opt)
- -- avoid linking culled objectfiles
- sourcebatch.objectfiles = dependency_scanner.sort_modules_by_dependencies(sourcebatch.objectfiles, modules)
+ -- avoid building non referenced modules
+ sourcebatch.objectfiles = dependency_scanner.sort_modules_by_dependencies(target, sourcebatch.objectfiles, modules)
-- build modules
builder.build_modules_for_batchjobs(target, batchjobs, sourcebatch, modules, opt)
@@ -153,8 +153,8 @@ rule("c++.build.modules.builder")
compiler_support.patch_sourcebatch(target, sourcebatch, opt)
local modules = dependency_scanner.get_module_dependencies(target, sourcebatch, opt)
- -- avoid linking culled objectfiles
- sourcebatch.objectfiles = dependency_scanner.sort_modules_by_dependencies(sourcebatch.objectfiles, modules)
+ -- avoid building non referenced modules
+ sourcebatch.objectfiles = dependency_scanner.sort_modules_by_dependencies(target, sourcebatch.objectfiles, modules)
-- build headerunits
builder.build_headerunits_for_batchcmds(target, batchcmds, sourcebatch, modules, opt)
@@ -163,7 +163,7 @@ rule("c++.build.modules.builder")
builder.build_modules_for_batchcmds(target, batchcmds, sourcebatch, modules, opt)
-- cull external modules objectfile
- compiler_support.cull_objectfiles(target, modules, sourcebatch)
+ -- compiler_support.cull_objectfiles(target, modules, sourcebatch)
else
-- avoid duplicate linking of object files of non-module programs
sourcebatch.objectfiles = {}