Skip to content

Commit

Permalink
fix: for now external math lib is needed
Browse files Browse the repository at this point in the history
For `sinf`, `cosf` and `expf`.
  • Loading branch information
iWas-Coder committed Nov 5, 2024
1 parent 43b07ff commit f2c5d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
languages: c-cpp
- name: test
run: |
clang -std=gnu99 src/make.c -o make
clang -std=gnu99 src/make.c -lm -static -o make
./make check
- name: analyze
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ tar -xvf carbon-0.7-linux-amd64.tgz
If wanted to build /Carbon/ from source independently (i.e. without defining ~CARBON_IMPLEMENTATION~ in your code), it can be done without any problems. We use a custom ~make~ utility (which uses /Carbon/ under the hood) as our build system to manage cleaning, compiling and packaging the library.

#+begin_src sh
cc -std=gnu99 src/make.c -o make
cc -std=gnu99 src/make.c -lm -static -o make
#+end_src

One built, we can take a look at the available subcommands:
Expand Down

0 comments on commit f2c5d6f

Please sign in to comment.