allow setting the standard

CSTD can be manually set near the top of src/Makefile, util/Makefile
or by including c99=1 or C99=1 on the build make command line if
using the linux.370 or macOS.370 hints files.
This commit is contained in:
nhmall
2023-02-17 10:23:40 -05:00
parent ee32339634
commit 24dab18167
3 changed files with 53 additions and 28 deletions

View File

@@ -149,8 +149,18 @@ endif # CPLUSPLUS_NEED17
endif # end of clang++-specific section
CXX=$(CCXX)
endif # CPLUSPLUS_NEEDED
endif # MAKEFILE_SRC
ifeq "$(c99)" "1"
WANT_C99=1
endif
ifeq "$(C99)" "1"
WANT_C99=1
endif
ifeq "$(WANT_C99)" "1"
CSTD = -std=c99
endif
#end of compiler.370
#------------------------------------------------------------------------------