I plan to write Haxe libraries in a subset of Haxe that will compile to every Haxe target language. Is there any way to verify that a Haxe program will compile to all target languages, and is it possible to do this without manually testing the compiled code on each target platform?
For example, is there a way to ensure that the following code is valid on every target platform, without testing it manually on every single platform?
class Test {
static function main(){
trace("How can I check to see which platforms this program will run on?");
}
}
EDIT: I have written a compile.hxml
file that compiles the class Test.hx
to various target languages. All the necessary haxelib libraries will need to be installed first in order for it to work properly.
-js test.js
-main Test
--next
-php www
-main Test
--next
-cpp cpp
-debug
-main Test
--next
-main Test
-java java
--next
-cs test
-main Test
-D haxe3