Skip to content

Commit

Permalink
build: _DEFAULT_SOURCE for main.c also
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 4, 2024
1 parent 3d927a6 commit bfbba38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ cc_flags="-std=c11 -g -Wall -Wextra -Werror -Iflamingo/runtime -Iflamingo -Wno-u
# Could this be a clangd bug?

cc $cc_flags -D_DEFAULT_SOURCE -D_GNU_SOURCE -ferror-limit=0 -c flamingo/flamingo.c -o bin/flamingo.o
cc $cc_flags -c main.c -o bin/main.o
cc $cc_flags -D_DEFAULT_SOURCE -c main.c -o bin/main.o

cc $(find bin -name "*.o") -lm $cc_flags -o bin/flamingo

0 comments on commit bfbba38

Please sign in to comment.