Browse Source

-lib define conditional var

Nicolas Cannasse 17 years ago
parent
commit
eefee1646b
2 changed files with 7 additions and 2 deletions
  1. 3 1
      doc/CHANGES.txt
  2. 4 1
      main.ml

+ 3 - 1
doc/CHANGES.txt

@@ -1,4 +1,4 @@
-2008-??-??: 2.01
+2008-10-04: 2.01
 	fixed php.Sys
 	added neko.NativeString and neko.NativeArray
 	fixed php.Boot.__string_rec() when invoked from toString
@@ -45,6 +45,8 @@
 	completed flash10 support
 	fixed ~64K resource limit for SWF8
 	fixed double-evaluations for array and field acesses with binary and unary ops
+	fixed bug when using protected AS3 classes in swf-lib
+	using -lib also define the conditional variable
 
 2008-07-28: 2.0
 	fixed current package bug in inherited constructor type

+ 4 - 1
main.ml

@@ -287,7 +287,10 @@ try
 			com.main_class <- Some cpath;
 			classes := cpath :: !classes
 		),"<class> : select startup class");
-		("-lib",Arg.String (fun l -> libs := l :: !libs),"<library[:version]> : use an haxelib library");
+		("-lib",Arg.String (fun l -> 
+			libs := l :: !libs;
+			Common.define com l;
+		),"<library[:version]> : use an haxelib library");
 		("-D",Arg.String (Common.define com),"<var> : define a conditional compilation flag");
 		("-resource",Arg.String (fun res ->
 			let file, name = (match ExtString.String.nsplit res "@" with