2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00
[SVN r12140]
This commit is contained in:
Dave Abrahams
2001-12-22 02:01:14 +00:00
parent dd91fe27e8
commit 956a8a3a7d
10 changed files with 62 additions and 16 deletions

View File

@@ -5,11 +5,11 @@
# to its suitability for any purpose.
# compute directories for invoking GCC
local SPACE = " " ;
GCC_BIN_DIRECTORY ?= $(GCC_ROOT_DIRECTORY)$(SLASH)bin$(SLASH) ;
GCC_BIN_DIRECTORY ?= "" ; # Don't clobber tool names if GCC_ROOT_DIRECTORY not set
GCC_INCLUDE_DIRECTORY ?= $(GCC_ROOT_DIRECTORY)$(SLASH)include ;
GCC_STDLIB_DIRECTORY ?= $(GCC_ROOT_DIRECTORY)$(SLASH)lib ;
local SPACE ?= " " ;
flags gcc LINKFLAGS <runtime-link>static : -static ;
flags gcc CFLAGS <debug-symbols>on : -g ;

View File

@@ -101,7 +101,7 @@ rule Cc-action
actions metrowerks-Cc-action
{
$(METROWERKS_SETUP)
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I"$(HDRS)" -I- -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
@@ -113,7 +113,7 @@ rule C++-action
actions metrowerks-C++-action
{
$(METROWERKS_SETUP)
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I- -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####

View File

@@ -61,7 +61,31 @@ rule true ( rule-name args * : * )
if ! $(result__)
{
error-skip-frames 3 assertion failure: expecting true result from
"[" $(rule-name) \"$(args)\" "]" ;
"[" $(rule-name)
[ lol->list $(args) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ]
"]" ;
}
}
# assert that the result of calling RULE-NAME on the given arguments
# has a false logical value (is either an empty list or all empty
# strings).
rule false ( rule-name args * : * )
{
local result__ ;
module [ CALLER_MODULE ]
{
result__ = [
$(rule-name) $(args) : $(2) $(3) : $(4)
: $(5) : $(6) : $(7) : $(8) : $(9) ] ;
}
if $(result__)
{
error-skip-frames 3 assertion failure: expecting false result from
"[" $(rule-name)
[ lol->list $(args) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ]
"]" : got [ lol->list $(result__) ] instead ;
}
}

View File

@@ -25,7 +25,8 @@ rule backtrace ( skip-frames messages * : * )
local args = messages 2 3 4 5 6 7 8 9 ;
while $(bt)
{
ECHO $(bt[1]):$(bt[2]): "in" $(bt[4]) ;
local m = [ SUBST $(bt[3]) ^(.+)\\.$ $1 ] ;
ECHO $(bt[1]):$(bt[2]): "in" $(bt[4]) "from module" $(m) ;
# the first time through, print each argument on a separate
# line
@@ -128,7 +129,7 @@ rule lol->list ( * )
{
result += ":" ;
}
result += \"$(n)\" ;
result += \"$($(n))\" ;
}
return $(result) ;
}

View File

@@ -50,8 +50,6 @@ if $(NT)
GCC_PYTHON_ROOT ?= $(CYGWIN_ROOT)/usr/local ;
GCC_PYTHON_ROOT ?= /usr/local ;
<gcc><*><library-path>$(GCC_PYTHON_ROOT)/lib/python$(PYTHON_VERSION)/config
<gcc><*><include>$(GCC_PYTHON_ROOT)/include/python$(PYTHON_VERSION)
}
else if $(UNIX)
{

View File

@@ -5,11 +5,11 @@
# to its suitability for any purpose.
# compute directories for invoking GCC
local SPACE = " " ;
GCC_BIN_DIRECTORY ?= $(GCC_ROOT_DIRECTORY)$(SLASH)bin$(SLASH) ;
GCC_BIN_DIRECTORY ?= "" ; # Don't clobber tool names if GCC_ROOT_DIRECTORY not set
GCC_INCLUDE_DIRECTORY ?= $(GCC_ROOT_DIRECTORY)$(SLASH)include ;
GCC_STDLIB_DIRECTORY ?= $(GCC_ROOT_DIRECTORY)$(SLASH)lib ;
local SPACE ?= " " ;
flags gcc LINKFLAGS <runtime-link>static : -static ;
flags gcc CFLAGS <debug-symbols>on : -g ;

View File

@@ -101,7 +101,7 @@ rule Cc-action
actions metrowerks-Cc-action
{
$(METROWERKS_SETUP)
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I"$(HDRS)" -I- -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
@@ -113,7 +113,7 @@ rule C++-action
actions metrowerks-C++-action
{
$(METROWERKS_SETUP)
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I- -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####

View File

@@ -50,8 +50,6 @@ if $(NT)
GCC_PYTHON_ROOT ?= $(CYGWIN_ROOT)/usr/local ;
GCC_PYTHON_ROOT ?= /usr/local ;
<gcc><*><library-path>$(GCC_PYTHON_ROOT)/lib/python$(PYTHON_VERSION)/config
<gcc><*><include>$(GCC_PYTHON_ROOT)/include/python$(PYTHON_VERSION)
}
else if $(UNIX)
{

View File

@@ -25,7 +25,8 @@ rule backtrace ( skip-frames messages * : * )
local args = messages 2 3 4 5 6 7 8 9 ;
while $(bt)
{
ECHO $(bt[1]):$(bt[2]): "in" $(bt[4]) ;
local m = [ SUBST $(bt[3]) ^(.+)\\.$ $1 ] ;
ECHO $(bt[1]):$(bt[2]): "in" $(bt[4]) "from module" $(m) ;
# the first time through, print each argument on a separate
# line
@@ -128,7 +129,7 @@ rule lol->list ( * )
{
result += ":" ;
}
result += \"$(n)\" ;
result += \"$($(n))\" ;
}
return $(result) ;
}

View File

@@ -61,7 +61,31 @@ rule true ( rule-name args * : * )
if ! $(result__)
{
error-skip-frames 3 assertion failure: expecting true result from
"[" $(rule-name) \"$(args)\" "]" ;
"[" $(rule-name)
[ lol->list $(args) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ]
"]" ;
}
}
# assert that the result of calling RULE-NAME on the given arguments
# has a false logical value (is either an empty list or all empty
# strings).
rule false ( rule-name args * : * )
{
local result__ ;
module [ CALLER_MODULE ]
{
result__ = [
$(rule-name) $(args) : $(2) $(3) : $(4)
: $(5) : $(6) : $(7) : $(8) : $(9) ] ;
}
if $(result__)
{
error-skip-frames 3 assertion failure: expecting false result from
"[" $(rule-name)
[ lol->list $(args) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ]
"]" : got [ lol->list $(result__) ] instead ;
}
}