Skip to content

Commit

Permalink
Add warning if destination flag is ignored (#1179)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tobil4sk authored Jan 23, 2025
1 parent 9687509 commit fa83d19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/hxcpp/BuildTool.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa83d19

Please sign in to comment.