dynamobi/dynamobi — Issue #404: [FNL-74] Decouple enabling of assertions from optimiziation
Author: dynamobi-build
Created: 2011-12-30 03:12:40+00:00
State: open
Labels: Build, FNL

[reporter="stephan", created="Fri, 25 Jul 2008 11:18:38 -0500 (GMT-05:00)"]
Creating this to track a task I've had on the back burner for a very long time.

Some background: From time to time we've discovered Fennel (particularly LCS) bugs in production environments which might have been detected during automated testing if assertions were enabled. Currently, assertions in Fennel are enabled (or not) based on Fennel's "--with-optimization" flag.

It's possible to re-arrange the build flags to separate assertion checking from optimization settings, which allows for a build that checks assertions, but still runs significantly faster than an un-optimized build.

The idea is introduce a new build flag --with-assertions to control assertion checking. The flag's default value would be the opposite of the optimization flag. So --with-optimization would, by default, disable assertions, --without-optimization would, by default, enable them. Either case is overridden by specifying --with-assertions or --without-assertions.