summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 0418be72f..a5172afc5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -25,14 +25,13 @@ COMPILE_MODE = :debug
# compile flags
case COMPILE_MODE.to_s
-when 'debug'
- CFLAGS = ['-g', '-O3', ENV['CFLAGS']]
when 'release'
CFLAGS = ['-O3']
when 'small'
CFLAGS = ['-Os']
-else
- CFLAGS = [ENV['CFLAGS']]
+else # including 'debug'
+ e = ENV['CFLAGS']
+ CFLAGS = if e then [e] else ['-g', '-O3'] end
end
LDFLAGS = [ENV['LDFLAGS']]