Improve try.sh and compile.sh in 1989/westley

The scripts now allow one to pass in CC=foo. If a path is specified
it'll use that path (for instance in case you want a different version
or because in macOS /usr/bin/gcc is actually clang); otherwise the shell
will try working it out. If one does not do CC=foo then it'll default to
'cc'.

Both try.sh and compile.sh allow this and try.sh will pass CC to
compile.sh before running the commands.

The CSILENCE variable in the Makefile has been updated as well. It is
not possible to silence all warnings with clang but most of them are, at
least in macOS clang (not tested linux yet).
This commit is contained in:
Cody Boone Ferguson committed 2023-11-14 02:21:58 -08:00
1 parent a2e2f50b29
commit d2e5aebd73
3 files changed
+82 -40

No files matched your search

+3 -2
View File
@@ -40,8 +40,9 @@ include ../../var.mk
#
CSILENCE= -Wno-comment -Wno-error -Wno-implicit-function-declaration \
-Wno-logical-op-parentheses -Wno-deprecated-non-prototype \
-Wno-int-conversion -Wno-return-type \
-Wno-comma -Wno-missing-variable-declarations -Wno-unused-value
-Wno-int-conversion -Wno-return-type -Wno-parentheses \
-Wno-comma -Wno-missing-variable-declarations -Wno-unused-value \
-Wno-implicit-int -Wno-missing-parameter-type -Wno-pointer-to-int-cast
# Common C compiler warning flags
#