compiler settings alignment between macOS.2020 and linux.2020

get the warning flags on linux and macOS into better alignment

move the compiler flags into hints/include/compiler.2020 so that
maintenance changes can be made there and take effect for both
linux and macOS

this will likely trigger some initial new code warnings to be
investigated on either or both platforms
This commit is contained in:
nhmall
2021-01-22 16:05:30 -05:00
parent 77d4b4c955
commit 18a4a41b15
4 changed files with 90 additions and 77 deletions

View File

@@ -1,3 +1,4 @@
#------------------------------------------------------------------------------
# NetHack 3.7 multiw-1.2020 $NHDT-Date: 1597332785 2020/08/13 15:33:05 $ $NHDT-Branch: NetHack-3.7 $
@@ -18,20 +19,5 @@
#WANT_DEFAULT=Qt
#WANT_DEFAULT=X11
# 3. compiler detection or optional override
CCISCLANG := $(shell echo `$(CC) --version` | grep clang)
ifeq "$(CCISCLANG)" ""
CXX=g++ -std=gnu++11
else
CXX=clang++ -std=gnu++11
endif
# if you want to override the compiler detection just carried out
# uncomment one of the following pairs as desired.
#CC= gcc
#CXX= g++ -std-gnu++11
#
#CC= clang
#CXX=clang++ -std=gnu++11
#end of multiw-1.2020
#------------------------------------------------------------------------------