Skip to content

Commit

Permalink
update makefile: gcc => clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkinben committed Oct 22, 2021
1 parent ca4c07b commit f529c8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ This project is inspired by sqlite.
</svg></div>



## Build

This project has only one `.c` file. And you can build it by:
Expand Down Expand Up @@ -120,6 +119,7 @@ And it also support some meta commands (for debugging):
## Test

```text
$ bundle install
$ bundle exec rspec
```

Expand Down
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
GCC=gcc -Wall
CC=clang -Wall
build:
$(GCC) main.c -o tinydb
$(CC) main.c -o tinydb
clean:
rm *.db
run:
make build
./tinydb mydb.db
test:
$(GCC) test.c -o a.out
$(CC) test.c -o a.out
./a.out

0 comments on commit f529c8b

Please sign in to comment.