When using the builtin build, is there some way to have a flag that the user can explicitly enable on the command line that defaults to disabled if not specified?
The command would look something like this if the user explicitly enabled the flag: luarocks SOME_FLAG=1 install foobar And in the C code I'd have something like this: #if SOME_FLAG doFoo(); #else doBar(); #endif I know we can specify defines in the rockspec build.defines table and use $(SOME_VAR) to get a command-line variable's value, but I can't quite figure out how to have the flag default to disabled if the user doesn't specify it. Is this possible? Thanks, Choonster ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers