diff options
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -36,8 +36,13 @@ end LDFLAGS = [ENV['LDFLAGS']] LIBS = [ENV['LIBS'] || '-lm'] +if ENABLE_GEMS + require './mrbgems/build_tasks' + Rake::Task[:load_mrbgems_flags].invoke +else + CFLAGS << "-DDISABLE_GEMS" +end -CFLAGS << "-DDISABLE_GEMS" unless ENABLE_GEMS CFLAGS << "-Wall" << "-Werror-implicit-function-declaration" << "-I#{MRUBY_ROOT}/include" if ENV['OS'] == 'Windows_NT' @@ -58,10 +63,6 @@ CAT = ENV['CAT'] ||= 'cat' ############################## # generic build targets, rules -if ENABLE_GEMS - require './mrbgems/build_tasks' -end - task :default => :all desc "build all targets, install (locally) in-repo" |
