Actionscript 3 使用flascc进行as3条件编译

Actionscript 3 使用flascc进行as3条件编译,actionscript-3,mxmlc,conditional-compilation,flascc,Actionscript 3,Mxmlc,Conditional Compilation,Flascc,我有一个as3项目,其中包含自定义flex-config.xml和mxmlc的条件编译指令,如下所示: <define append="true"> <name>CONFIG::DEBUG</name> <value>true</value> </define> <define append="true"> <name>CONFIG::RELEASE</name> <

我有一个as3项目,其中包含自定义flex-config.xml和mxmlc的条件编译指令,如下所示:

<define append="true">
  <name>CONFIG::DEBUG</name>
  <value>true</value>
</define>
<define append="true">
  <name>CONFIG::RELEASE</name>
  <value>false</value>
</define>

配置::调试
真的
配置::发布
假的
我如何使用flascc g++?flascc的gcc说

-fllvm-llc-opt= Pass an argument through to the final invocation of llc (LLVM-IR->ABC codegen).
运行
$FLASCC_HOME/usr/bin/llc时--help
显示

-ascopt=<asc options> - Extra options to pass to ASC when compiling ActionScript
看来我们应该能够做到这一点:

gcc-fllvm llc opt=“-ascopt=-config-config::RELEASE=true”

不幸的是,虽然该标志确实到达了asc.jar(!),但它似乎是作为一个参数(而不是两个)传递的,所以它会出错。
-config
所需的空间正在把事情搞砸

其目的是分别通过两个arg:


gcc-fllvm llc opt=-ascopt=-config-fllvm llc opt=-ascopt=config::RELEASE=true

我找到的唯一方法是首先通过ascbtw生成abc,如果您所追求的实际上是C中的条件编译,那么您可以始终执行
-DFOO=BAR
[-config <ns::name=value>]