从Haxe 3.0开始,你可以通过运行 haxe --help-defines 获得支持的编译器标记(第6.1节)列表。
Starting from Haxe 3.0, you can get the list of supported compiler flags (6.1) by running
haxe --help-defines
标记 | 描述 |
---|---|
absolute-path | 打印绝对文件路径到trace 输出 |
advanced-telemetry | 允许SWF被Monocle工具实测 |
analyzer | 使用静态的分析仪用于优化(实验) |
as3 | 当输出flash9 as3源代码时定义 |
check-xml-proxy | 检查xml代理用到的字段 |
core-api | 定义到核心api上下文 |
core-api-serialize | 使用C#中的Serializable 属性标记一些生成的代码 api 类 |
cppia | 生成实验性的c++指令集 |
dce=mode:std|full|no (竖线因编辑器问题显式不正常) | 设置无用代码消除(第8.2节)模式(默认为 std) |
dce-debug | 显式无用代码消除(第8.2节)日志 |
debug | 当使用 -debug编译时激活 |
display | 编译过程中激活 |
dll-export | GenCPP 实验性链接 |
dll-import | GenCPP 实验性链接 |
doc-gen | 不执行任何 移除/改变, 以正确的生成文档 |
dump | 为内部的调试转储完全类型化的 AST到一个转储子目录 - 使用dump-pretty进行Haxe风格的格式化。 |
dump-dependencies | 转储类依赖关系到一个转储目录 |
dump-ignore-var-ids | 从不美观的dumps移除变量的IDs(有助于diff) |
fdb | 为FDB交互调试启用完整的flash调试信息 |
file-extension | 输出c++源代码文件名后缀 |
flash-strict | flash目标的严格类型 |
flash-use-stage | 保留SWF库的初始阶段 |
force-lib-check | 强制编译器检查 -net-lib 和 -java-lib 添加的类(内部) |
force-native-property | Tag all properties with :nativeProperty metadata for 3.1 compatibility |
format-warning | Print a warning for each formated string, for 2.x compatibility |
gencommon-debug | GenCommon internal |
haxe-boot | Given the name 'haxe' to the flash boot class instead of a generated name |
haxe-ver | 当前Haxe版本值 |
hxcpp-api-level | Provided to allow compatibility between hxcpp versions |
include-prefix | prepend path to generated include files |
interp | The code is compiled to be run with --interp |
java-ver=[version:5-7] | 设置目标的Java版本 |
js-classic | Don't use a function wrapper and strict mode in JS output |
js-es5 | Generate JS for ES5-compliant runtimes |
js-unflatten | Generate nested objects for packages and types |
keep-old-output | Keep old source files in the output directory (for C#/Java) |
loop-unroll-max-cost | Maximum cost (number of expressions * iterations) before loop unrolling is canceled (default 250) |
macro | Defined when code is compiled in the macro context |
macro-times | Display per-macro timing when used with --times |
net-ver=version:20-45 | 设置目标的.NET版本 |
net-target= | Sets the .NET target. Defaults to net. xbox, micro (Micro Framework, compact (Compact Framework) are some valid values |
neko-source | Output neko source instead of bytecode |
neko-v1 | Keep Neko 1.x compatibility |
network-sandbox | Use local network sandbox instead of local file access one |
no-compilation | Disable CPP final compilation |
no-copt | Disable completion optimization (for debug purposes) |
no-debug | Remove all debug macros from cpp output |
no-deprecation-warnings | Do not warn if fields annotated with @:deprecated are used |
no-flash-override | Change overrides on some basic classes into HX suffixed methods flash only |
no-opt | Disable optimizations |
no-pattern-matching | Disable pattern matching |
no-inline | Disable inlining |
no-root | GenCS internal |
no-macro-cache | Disable macro context caching |
no-simplify | Disable simplification filter |
no-swf-compress | Disable SWF output compression |
no-traces | Disable all trace calls |
php-prefix | Compiled with --php-prefix |
real-position | Disables haxe source mapping when targetting C# |
replace-files | GenCommon internal |
scriptable | GenCPP internal |
shallow-expose | Expose types to surrounding scope of Haxe generated closure without writing to window object |
source-map-content | Include the hx sources as part of the JS source map |
swc | Output a SWC instead of a SWF |
swf-compress-level=level:1-9 | Set the amount of compression for the SWF output |
swf-debug-password= | Set a password for debugging. The password field is encrypted by using the MD5 algorithm and prevents unauthorised debugging of your swf. Without this flag -D fdb will use no password. |
swf-direct-blit | Use hardware acceleration to blit graphics |
swf-gpu | Use GPU compositing features when drawing graphics |
swf-metadata=<file.xml> | Include contents of <file.xml> as metadata in the swf. |
swf-preloader-frame | Insert empty first frame in swf. To be used together with -D flash-use-stage and -swf-lib |
swf-protected | Compile Haxe private as protected in the SWF instead of public |
swf-script-timeout | Maximum ActionScript processing time before script stuck dialog box displays (in seconds) |
swf-use-doabc | Use DoAbc swf-tag instead of DoAbcDefine |
sys | Defined for all system platforms |
unsafe | Allow unsafe code when targeting C# |
use-nekoc | Use nekoc compiler instead of internal one |
use-rtti-doc | Allows access to documentation during compilation |
vcproj | GenCPP internal |