diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-11-02 14:13:33 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-11-02 14:13:33 +0900 |
| commit | 9a5c78dc266833fc10555935f2aa2f92b88cb9a0 (patch) | |
| tree | be951f8c26a87510349b5590e6722c201be9e5c0 /Rakefile | |
| parent | f000856d686f03090c8919b653d96afcb7eae742 (diff) | |
| download | mruby-9a5c78dc266833fc10555935f2aa2f92b88cb9a0.tar.gz mruby-9a5c78dc266833fc10555935f2aa2f92b88cb9a0.zip | |
Fix parallel build
When `rake -m` and so on are used to build in parallel, building may be
started before presym files are generated. Then, for example, the following
error occurs and this issue is fixed.
```console
In file included from /Users/shuujii/mruby/mruby/include/mruby.h:92:
/mruby/mruby/include/mruby/presym.h:16:10: fatal error: '../build/presym.inc' file not found
#include <../build/presym.inc>
^~~~~~~~~~~~~~~~~~~~~
```
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -232,7 +232,6 @@ end desc "preallocated symbols" task :gensym => presym_inc -task :all => :gensym depfiles += MRuby.targets.map { |n, t| t.libraries @@ -243,7 +242,7 @@ depfiles += MRuby.targets.reject { |n, t| n == 'host' }.map { |n, t| }.flatten desc "build all targets, install (locally) in-repo" -task :all => depfiles do +task :all => :build do puts puts "Build summary:" puts @@ -253,6 +252,10 @@ task :all => depfiles do MRuby::Lockfile.write end +task :build => :gensym do + depfiles.each {|dep| Rake::Task[dep].invoke} +end + desc "run all mruby tests" task :test MRuby.each_target do |
