Browse Source

keep flash8 Boot and temporarily activate DCE for unit tests to investigate some Java DCE issues

Simon Krajewski 13 years ago
parent
commit
f7d609151a
3 changed files with 4 additions and 2 deletions
  1. 1 0
      std/flash8/Boot.hx
  2. 1 1
      tests/unit/Test.hx
  3. 2 1
      tests/unit/params.hxml

+ 1 - 0
std/flash8/Boot.hx

@@ -24,6 +24,7 @@
  */
 package flash;
 
+@:keep
 class Boot {
 
 	private static var def_color = 0;

+ 1 - 1
tests/unit/Test.hx

@@ -1,6 +1,6 @@
 package unit;
 
-class Test #if swf_mark implements mt.Protect #end #if as3 implements haxe.Public #end {
+@:keepSub class Test #if swf_mark implements mt.Protect #end #if as3 implements haxe.Public #end {
 
 	public function new() {
 	}

+ 2 - 1
tests/unit/params.hxml

@@ -2,4 +2,5 @@
 -cp ..
 -resource res1.txt
 -resource res2.bin
---no-opt
+--no-opt
+--dead-code-elimination