From fa83d1964a4aac1e7a4bd68c75a962106324ddb6 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Thu, 23 Jan 2025 14:17:10 +0000 Subject: [PATCH] Add warning if destination flag is ignored (#1179) If the current target does not produce a file, the -Ddestination flag is currently ignored without warning. This situation may occur commonly when 'default' points to another target, but doesn't produce a file itself. A warning will now be displayed: Warning: Target 'default' does not output a file, so 'destination' has been ignored --- tools/hxcpp/BuildTool.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/hxcpp/BuildTool.hx b/tools/hxcpp/BuildTool.hx index d6b42f513..5c5e83b4f 100644 --- a/tools/hxcpp/BuildTool.hx +++ b/tools/hxcpp/BuildTool.hx @@ -771,6 +771,8 @@ class BuildTool } } Profile.pop(); + case _ if (inDestination != null): + Log.warn('Target \'${inTarget}\' does not output a file, so \'destination\' has been ignored'); } if (mCopyFiles.length>0)