From 618f75184179eafa6ae8bcd4c9e81acaeebc6b53 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 7 Feb 2024 11:54:53 +0100 Subject: use target:is_binary instead of target:kind() == "binary" --- xmake/rules/c++/modules/modules_support/compiler_support.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmake/rules/c++/modules/modules_support') diff --git a/xmake/rules/c++/modules/modules_support/compiler_support.lua b/xmake/rules/c++/modules/modules_support/compiler_support.lua index d9d849454..d11e833fd 100644 --- a/xmake/rules/c++/modules/modules_support/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/compiler_support.lua @@ -67,7 +67,7 @@ end function cull_objectfiles(target, modules, sourcebatch) -- don't cull for executables - if target:kind() == "binary" then + if target:is_binary() then return end @@ -76,7 +76,6 @@ function cull_objectfiles(target, modules, sourcebatch) local objectfile = target:objectfile(sourcefile) local module = modules[objectfile] local _, provide, _ = get_provided_module(module) - if provide then local fileconfig = target:fileconfig(sourcefile) local public = fileconfig and fileconfig.public -- cgit v1.3.1