Skip to content

Commit

Permalink
2024-09-03 15:59:34
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Sep 3, 2024
1 parent 70b8cc6 commit c813f62
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 273 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ LDFLAGS2 += -Ldeps/compiler-rt-builtins-riscv/build -lcompiler-rt
LDFLAGS2 += --sysroot deps/musl/release -Ldeps/musl/release/lib -lc -lgcc -nostdlib
LDFLAGS2 += -wrap=gettimeofday
LDFLAGS2 += -wrap=printf
LDFLAGS2 += -wrap=stderr
LDFLAGS2 += -wrap=stdout

OBJDIR=build
Expand Down Expand Up @@ -102,6 +103,10 @@ $(OBJDIR)/%.o: include/%.c
@echo build $<
@$(CC) $(CFLAGS) -c -o $@ $<

$(OBJDIR)/libbf.o: quickjs/libbf.c
@echo build $<
@$(CC) $(CFLAGS2) -c -o $@ $<

test:
make -f tests/examples/Makefile
make -f tests/basic/Makefile
Expand Down
2 changes: 1 addition & 1 deletion include/c-stdlib/src/stdio_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FILE *stdin;
FILE *__wrap_stdout;
FILE *stderr;
FILE *__wrap_stderr;

int ckb_exit(signed char code);

Expand Down
Loading

0 comments on commit c813f62

Please sign in to comment.