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 /src/dump.c | |
| 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 'src/dump.c')
| -rw-r--r-- | src/dump.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dump.c b/src/dump.c index dcd94fd45..10b6d9dec 100644 --- a/src/dump.c +++ b/src/dump.c @@ -1216,10 +1216,7 @@ mrb_dump_irep_cstruct(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE if (fp == NULL || initname == NULL || initname[0] == '\0') { return MRB_DUMP_INVALID_ARGUMENT; } - if (fprintf(fp, "#include <mruby.h>\n" - "#include <mruby/proc.h>\n" - "#include <mruby/presym.h>\n" - "\n") < 0) { + if (fprintf(fp, "#include <mruby.h>\n" "#include <mruby/proc.h>\n\n") < 0) { return MRB_DUMP_WRITE_FAULT; } fputs("#define mrb_BRACED(...) {__VA_ARGS__}\n", fp); |
