diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-22 18:38:53 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-22 18:38:53 +0900 |
| commit | dc51d89ac22acc60b9bfeed87115863565b74085 (patch) | |
| tree | 4ac51e7949d187c87aa4fb29159b6f7ae02401b3 /tasks | |
| parent | c5c156a6dd57eddc87e2162172b202233e45ad70 (diff) | |
| download | mruby-dc51d89ac22acc60b9bfeed87115863565b74085.tar.gz mruby-dc51d89ac22acc60b9bfeed87115863565b74085.zip | |
Minimize the changes in #5277
Instead of including `mruby/presym.h` everywhere, we provided the
fallback `mruby/presym.inc` under `include/mruby` directory, and specify
`-I<build-dir>/include` before `-I<top-dir>/include` in `presym.rake`.
So even when someone drops `-I<build-dir>/include` in compiler options,
it just compiles without failure.
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/presym.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/presym.rake b/tasks/presym.rake index 537d42487..6ee7bd9d3 100644 --- a/tasks/presym.rake +++ b/tasks/presym.rake @@ -13,8 +13,8 @@ MRuby.each_target do |build| presym = build.presym include_dir = "#{build.build_dir}/include" - build.compilers.each{|c| c.include_paths << include_dir} - build.gems.each{|gem| gem.compilers.each{|c| c.include_paths << include_dir}} + build.compilers.each{|c| c.include_paths.unshift include_dir} + build.gems.each{|gem| gem.compilers.each{|c| c.include_paths.unshift include_dir}} prereqs = {} pps = [] |
