Skip to content

Commit 56196e7

Browse files
authored
example: fix http example by replacing bitcode with c (#42)
1 parent 2d95116 commit 56196e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/http/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
http
2-
*.bc
2+
*.c
33
*.ll
44
*.h
55
*.o

examples/http/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CC ?= clang
33
all: http
44

55
http: main.c http_parser.bc
6-
$(CC) -g3 -flto -Os -fvisibility=hidden -Wall -I. http_parser.bc main.c -o $@
6+
$(CC) -g3 -flto -Os -fvisibility=hidden -Wall -I. http_parser.c main.c -o $@
77

88
http_parser.bc: index.ts
99
npx ts-node $<

examples/http/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ const path = require('path');
4848

4949
const artifacts = p.build(method);
5050
fs.writeFileSync(path.join(__dirname, 'http_parser.h'), artifacts.header);
51-
fs.writeFileSync(path.join(__dirname, 'http_parser.bc'), artifacts.bitcode);
51+
fs.writeFileSync(path.join(__dirname, 'http_parser.c'), artifacts.c);

0 commit comments

Comments
 (0)