summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile5
-rw-r--r--mrbgems/mruby-math/src/math.c8
-rw-r--r--src/vm.c2
3 files changed, 5 insertions, 10 deletions
diff --git a/Rakefile b/Rakefile
index 67aa64d4e..c7d70797e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -33,8 +33,11 @@ load "#{MRUBY_ROOT}/test/mrbtest.rake"
# generic build targets, rules
task :default => :all
+bin_path = "#{MRUBY_ROOT}/bin"
+FileUtils.mkdir_p bin_path, { :verbose => $verbose }
+
depfiles = MRuby.targets['host'].bins.map do |bin|
- install_path = MRuby.targets['host'].exefile("#{MRUBY_ROOT}/bin/#{bin}")
+ install_path = MRuby.targets['host'].exefile("#{bin_path}/#{bin}")
source_path = MRuby.targets['host'].exefile("#{MRuby.targets['host'].build_dir}/bin/#{bin}")
file install_path => source_path do |t|
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index 3daece9bc..a699a12f0 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -359,14 +359,6 @@ math_atanh(mrb_state *mrb, mrb_value obj)
/*
EXPONENTIALS AND LOGARITHMS
*/
-#if defined __CYGWIN__
-# include <cygwin/version.h>
-# if CYGWIN_VERSION_DLL_MAJOR < 1005
-# define nan(x) nan()
-# endif
-# define log(x) ((x) < 0.0 ? nan("") : log(x))
-# define log10(x) ((x) < 0.0 ? nan("") : log10(x))
-#endif
/*
* call-seq:
diff --git a/src/vm.c b/src/vm.c
index 2901f89d9..52510c98d 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -527,7 +527,7 @@ argnum_error(mrb_state *mrb, int num)
#define CODE_FETCH_HOOK(mrb, irep, pc, regs)
#endif
-#ifdef __GNUC__
+#if defined __GNUC__ || defined __clang__ || defined __INTEL_COMPILER
#define DIRECT_THREADED
#endif