Skip to content

Commit fa83d19

Browse files
authored
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
1 parent 9687509 commit fa83d19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/hxcpp/BuildTool.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ class BuildTool
771771
}
772772
}
773773
Profile.pop();
774+
case _ if (inDestination != null):
775+
Log.warn('Target \'${inTarget}\' does not output a file, so \'destination\' has been ignored');
774776
}
775777

776778
if (mCopyFiles.length>0)

0 commit comments

Comments
 (0)