Jambase: Change default ARFLAGS and enable NOARSCAN by default.

On most systems, "D" (deterministic) is now the default archiving mode,
and so specifying "u" will throw a warning that "D" is being used anyway.
Jam previously assumed, as it was passing "u", that the timestamps inside
.a's were valid when they were actually 0, which was leading to spurious
rebuilds of .as.

After this change, we assume archives cannot be scanned for timestamps,
which should stop the spurious rebuilds of targets on most systems.
This commit is contained in:
Augustin Cavalier 2018-11-21 18:46:31 -05:00
parent 1d198a6bf6
commit 2671c4b959

View File

@ -167,7 +167,6 @@ if $(NT) {
$(MSVC)\\lib\\oldnames.lib
;
LINKLIBS ?= ;
NOARSCAN ?= true ;
OPTIM ?= ;
STDHDRS ?= $(MSVC)\\include ;
UNDEFFLAG ?= "/u _" ;
@ -221,7 +220,6 @@ if $(NT) {
LINK ?= mwld ;
LINKFLAGS ?= "" ;
MANDIR ?= /boot/home/config/man ;
NOARSCAN ?= true ;
RANLIB ?= ranlib ;
STDHDRS ?= /boot/develop/headers/posix ;
YACC ?= bison -y ;
@ -240,7 +238,6 @@ if $(NT) {
LIBDIR ?= /boot/home/config/lib ;
LINK ?= gcc ;
MANDIR ?= /boot/home/config/man ;
NOARSCAN ?= true ;
RANLIB ?= ranlib ;
STDHDRS ?= /boot/develop/headers/posix ;
YACC ?= bison -y ;
@ -259,7 +256,6 @@ if $(NT) {
LIBDIR ?= /boot/common/lib ;
LINK ?= gcc ;
MANDIR ?= /boot/common/man ;
NOARSCAN ?= true ;
RANLIB ?= ranlib ;
STDHDRS ?= /boot/develop/headers/posix ;
YACC ?= bison -y ;
@ -290,7 +286,6 @@ if $(NT) {
C++FLAGS ?= -Q ; # quiet
LINK ?= $(CC) ;
LINKFLAGS ?= -Q ; # quiet
NOARSCAN ?= true ;
RANLIB ?= "" ;
# UNIX defaults
@ -315,7 +310,7 @@ if $(NT) {
# General defaults; a lot like UNIX
#
AR ?= ar ru ;
AR ?= ar rD ;
AS ?= as ;
ASFLAGS ?= ;
AWK ?= awk ;
@ -335,21 +330,22 @@ HDRS ?= ;
INSTALLGRIST ?= installed ;
JAMFILE ?= Jamfile ;
JAMRULES ?= Jamrules ;
LEX ?= ;
LEX ?= ;
LIBDIR ?= /usr/local/lib ;
LINK ?= $(CC) ;
LINKFLAGS ?= ;
LINKLIBS ?= ;
LN ?= ln ;
LN ?= ln ;
NOARSCAN ?= true ;
MANDIR ?= /usr/local/man ;
MKDIR ?= mkdir ;
MV ?= mv -f ;
MV ?= mv -f ;
OPTIM ?= ;
RCP ?= rcp ;
RM ?= rm -f ;
RCP ?= rcp ;
RM ?= rm -f ;
RMDIR ?= $(RM) ;
RSH ?= rsh ;
SED ?= sed ;
RSH ?= rsh ;
SED ?= sed ;
SHELLHEADER ?= "#!/bin/sh" ;
SHELLMODE ?= 755 ;
SLASH ?= / ;