Commit 26e74e62ec2b9bc7b15d0c62053347f1cb3edf6b
- Date: Thu Jun 07 06:48:54 +0000 2007
- Committer: Dustin Sallings (dustin@spy.net)
- Author: Dustin Sallings (dustin@spy.net)
- Commit SHA1: 26e74e62ec2b9bc7b15d0c62053347f1cb3edf6b
- Tree SHA1: d1910b337d0d668c49de997b96e924b83fff687c
Added assertions compile option.
Commit diff
| |   |
| 1 | 1 | opts=Options() |
| 2 | 2 | |
| 3 | 3 | opts.Add(BoolOption('PROFILE', 'Compile with profiling.', 0)) |
| 4 | opts.Add(BoolOption('USE_ASSERT', 'Compile with assertions', 0)) |
| 4 | 5 | |
| 5 | 6 | env = Environment(options = opts) |
| 6 | 7 | Help(opts.GenerateHelpText(env)) |
| toggle raw diff |
--- a/SConstruct
+++ b/SConstruct
@@ -1,6 +1,7 @@
opts=Options()
opts.Add(BoolOption('PROFILE', 'Compile with profiling.', 0))
+opts.Add(BoolOption('USE_ASSERT', 'Compile with assertions', 0))
env = Environment(options = opts)
Help(opts.GenerateHelpText(env)) |