summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/target.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 1c6914743..22ddd267c 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -298,7 +298,7 @@ end
-- clone target, @note we can just call it in after_load()
function _instance:clone()
- if not self:_is_loaded() or self._LOADED_AFTER then
+ if not self:_is_loaded() then
os.raise("please call target:clone() in after_load().", self:name())
end
local instance = target.new(self:name(), self._INFO:clone())