Skip to content

Setting compilation flags

devboy edited this page Apr 4, 2012 · 1 revision

To add compilation flags, assign an array with flags to compile.options.flags like:

define "MyProject" do
  compile.using :hxswf # Or any other haXe compiler
  compile.options.flags = [:myflag1, "myflag2"]
end

Flags can be Ruby Strings and Symbols.

Keep in mind that buildr-hx will set the debug and environment flags based on your buildr configuration.

Clone this wiki locally