From dc51d89ac22acc60b9bfeed87115863565b74085 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 22 Jan 2021 18:38:53 +0900 Subject: 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/include` before `-I/include` in `presym.rake`. So even when someone drops `-I/include` in compiler options, it just compiles without failure. --- tasks/presym.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks') 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 = [] -- cgit v1.2.3