Hugh Sasse
10/22/2008 4:26:00 PM
On Thu, 23 Oct 2008, Brock Rycenga wrote:
>
> As usual, right after I finally decide to post something to a forum, I
> trip over an answer myself. I found that this seems to do the trick.
>
> task :release_build do
> C_OPTIMIZE_LVL="-o2"
> C_DEBUG=""
> Rake::Task[:debug_build].invoke
> end
>
> Is this a good way to do this? Is there a better one? Should I just stop
> asking questions and move on?
I'd make them global variables, just to make them stand out, show they
are shared between tasks, but I don't use rake that much at the moment
As to the next question about command line options, then my reading of
rake --help suggests you can't set them from the command line, but you
could set environment vars and read those inside the rakefile. Or read
a config file with values in it.
>
> Thanks,
> B
>
Hugh