Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit c81dfd8

Browse files
committed
include 'api.h' in benchmark scripts instead of merged lib-ruby-parser.h
1 parent 74188e3 commit c81dfd8

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.depend

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ tests/runner: tests/runner.c tests/test_helper.h tests/api_test.c \
2323
tests/source_line_test.c tests/string_test.c \
2424
tests/token_rewriter_test.c tests/token_test.c
2525

26-
benchmark/c-parser: benchmark/benchmark.c benchmark/../lib-ruby-parser.h \
26+
benchmark/c-parser: benchmark/benchmark.c api.h \
27+
parser_options.h string.h \
28+
decoder.h bytes.h \
29+
token_rewriter.h token.h loc.h \
30+
decoded_input.h source_line.h \
31+
token_ids.h shared_byte_list.h \
32+
parser_result.h nodes.h \
33+
diagnostic.h messages.h \
34+
comment.h magic_comment.h \
2735
benchmark/rb_filelist.h
2836

benchmark/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <stdio.h>
2-
#include "../lib-ruby-parser.h"
2+
#include "../api.h"
33
#include "rb_filelist.h"
44
#include "time.h"
55

benchmark/build.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
benchmark/c-parser: $(STATIC_LIB) lib-ruby-parser.h benchmark/benchmark.c
1+
benchmark/c-parser: $(STATIC_LIB) benchmark/benchmark.c
22
$(call build_c_exe,benchmark/benchmark.c $(STATIC_LIB),benchmark/c-parser)
33

44
define download_latest_bench_asset

scripts/update-depend.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ echo "" >> .depend
2020

2121
sed 's/tests\/\.\.\///g' .depend > .depend-tmp
2222
mv .depend-tmp .depend
23+
24+
sed 's/benchmark\/\.\.\///g' .depend > .depend-tmp
25+
mv .depend-tmp .depend

0 commit comments

Comments
 (0)