diff options
| author | Xuejie Xiao <[email protected]> | 2012-12-18 20:33:51 -0500 |
|---|---|---|
| committer | Xuejie Xiao <[email protected]> | 2012-12-18 20:34:07 -0500 |
| commit | b641c96f57f806efdf7dc84d3a1879a7625a95b0 (patch) | |
| tree | 1ef692504293b86f07f4ae4354e2f74889e0a8f5 /Rakefile | |
| parent | 0e984e7e2ec4d4231494976a4f32f954795d8e4b (diff) | |
| download | mruby-b641c96f57f806efdf7dc84d3a1879a7625a95b0.tar.gz mruby-b641c96f57f806efdf7dc84d3a1879a7625a95b0.zip | |
Derive DISABLE_GEMS macro according to build configuration
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,10 @@ end LDFLAGS = [ENV['LDFLAGS']] LIBS = [ENV['LIBS'] || '-lm'] +if !ENABLE_GEMS + CFLAGS << "-DDISABLE_GEMS" +end + CFLAGS << "-Wall" << "-Werror-implicit-function-declaration" << "-I#{MRUBY_ROOT}/include" if ENV['OS'] == 'Windows_NT' MAKE_FLAGS = "--no-print-directory CC=#{CC} LL=#{LL} AR=#{AR} YACC=#{YACC} CFLAGS=\"#{CFLAGS.join(' ')}\" LDFLAGS=\"#{LDFLAGS.join(' ')}\" LIBS=\"#{LIBS.join(' ')}\" ENABLE_GEMS=\"#{ENABLE_GEMS}\" MRUBY_ROOT=\"#{MRUBY_ROOT}\"" |
