diff options
| author | Rory OConnell <[email protected]> | 2020-08-29 17:19:49 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:12 +0900 |
| commit | dae0de44617cf9e4584f8aa8cd34db4cd928a0c8 (patch) | |
| tree | 1b642dc3dc81a9d964d750bb01b123c09c8e172b /tasks | |
| parent | cfe8b0c81ddf1d221e4e1c6bb41d7e4c50d59fad (diff) | |
| download | mruby-dae0de44617cf9e4584f8aa8cd34db4cd928a0c8.tar.gz mruby-dae0de44617cf9e4584f8aa8cd34db4cd928a0c8.zip | |
Add call to malloc_trim on a full GC
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/gcc.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index 810f23b7a..3d55e6171 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -31,6 +31,8 @@ MRuby::Toolchain.new(:gcc) do |conf, params| end [[conf.cc, 'c'], [conf.cxx, 'c++']].each do |cc, lang| + cc.defines += %w(HAS_MALLOC_TRIM) if cc.has_function? 'malloc_trim', with_header: 'malloc.h' + cc.instance_variable_set :@header_search_language, lang def cc.header_search_paths if @header_search_command != command |
