Skip to content

Commit

Permalink
fix: use CC macro instead of gcc directly
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed May 8, 2024
1 parent 548228b commit e1abb95
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ checkdeps:
exit 1; \
fi; \
done
@for i in $(CHECKDEPS_TYPES); do \
if echo "#include <stdint.h>\n#include <stddef.h>\n$${i} x;" | gcc -x c -S - -o /dev/stdout >/dev/null 2>&1; then \
printf "checking for $${i}... \033[1;32myes\033[0m\n"; \
else \
printf "checking for $${i}... \033[1;31mno\033[0m\n"; \
exit 1; \
fi; \
@for i in $(CHECKDEPS_TYPES); do \
if echo "#include <stdint.h>\n#include <stddef.h>\n$${i} x;" | $(CC) -x c -S - -o /dev/stdout >/dev/null 2>&1; then \
printf "checking for $${i}... \033[1;32myes\033[0m\n"; \
else \
printf "checking for $${i}... \033[1;31mno\033[0m\n"; \
exit 1; \
fi; \
done

$(BUILD_DIR):
Expand Down

0 comments on commit e1abb95

Please sign in to comment.