Skip to content

Commit

Permalink
Update Main.hx
Browse files Browse the repository at this point in the history
use dce / analyzer-optimize on build files
  • Loading branch information
markknol authored May 22, 2020
1 parent 51be568 commit 57d4b1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ class Project {
var hxml = '';
var pack = classPath != "" ? classPath + "." : "";
if (doCreateMainClass) hxml += '-main ${pack}Main' + NEWLINE;
hxml += '-dce full' + NEWLINE;
hxml += '-D analyzer-optimize' + NEWLINE;
hxml += '-cp $srcPath' + NEWLINE;
for(cp in classPaths) hxml += '-cp $cp' + NEWLINE;

Expand Down Expand Up @@ -582,4 +584,4 @@ abstract Message(String) {
}

public inline function toString() return this;
}
}

0 comments on commit 57d4b1d

Please sign in to comment.