mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
fixes
[SVN r12140]
This commit is contained in:
@@ -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 ;
|
||||
|
||||
@@ -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 ####
|
||||
|
||||
@@ -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 ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) ;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 ;
|
||||
|
||||
@@ -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 ####
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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) ;
|
||||
}
|
||||
|
||||
@@ -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 ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user