We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
http
bitcode
c
1 parent 2d95116 commit 56196e7Copy full SHA for 56196e7
3 files changed
examples/http/.gitignore
@@ -1,5 +1,5 @@
1
2
-*.bc
+*.c
3
*.ll
4
*.h
5
*.o
examples/http/Makefile
@@ -3,7 +3,7 @@ CC ?= clang
all: http
http: main.c http_parser.bc
6
- $(CC) -g3 -flto -Os -fvisibility=hidden -Wall -I. http_parser.bc main.c -o $@
+ $(CC) -g3 -flto -Os -fvisibility=hidden -Wall -I. http_parser.c main.c -o $@
7
8
http_parser.bc: index.ts
9
npx ts-node $<
examples/http/index.ts
@@ -48,4 +48,4 @@ const path = require('path');
48
49
const artifacts = p.build(method);
50
fs.writeFileSync(path.join(__dirname, 'http_parser.h'), artifacts.header);
51
-fs.writeFileSync(path.join(__dirname, 'http_parser.bc'), artifacts.bitcode);
+fs.writeFileSync(path.join(__dirname, 'http_parser.c'), artifacts.c);
0 commit comments