summaryrefslogtreecommitdiff
path: root/ruby-runner.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-08 01:49:02 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-08 01:49:02 (GMT)
commit2301054a99b85ad2ede6a53404268f25dc2d5fdc (patch)
treed0fae32d3f95f2fe8169e01d9b52488d31cf3ead /ruby-runner.c
parent3458e8241c2335b5fd268011d4e4f9ba3ffd9e42 (diff)
Use BUILDDIR in ruby-runner.h from config.status
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby-runner.c')
-rw-r--r--ruby-runner.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ruby-runner.c b/ruby-runner.c
index 0ad2561..171f476 100644
--- a/ruby-runner.c
+++ b/ruby-runner.c
@@ -9,6 +9,10 @@
#include "ruby-runner.h"
#include "ruby/config.h"
+#ifdef MAKE_MJIT_BUILD_DIR
+const char MJIT_BUILD_DIR[] = BUILDDIR;
+#else
+
#define STRINGIZE(expr) STRINGIZE0(expr)
#define STRINGIZE0(expr) #expr
@@ -90,3 +94,5 @@ main(int argc, char **argv)
perror(rubypath);
return -1;
}
+
+#endif /* MAKE_MJIT_BUILD_DIR */