Index: msvc.jam =================================================================== RCS file: /cvsroot/boost/boost/tools/build/v2/tools/msvc.jam,v retrieving revision 1.83 diff -u -r1.83 msvc.jam --- msvc.jam 22 Jun 2006 14:52:49 -0000 1.83 +++ msvc.jam 24 Jun 2006 18:30:47 -0000 @@ -355,12 +355,12 @@ { flags msvc.link .MT $(cond) : $(command[$(i)])$(manifest-tool) -nologo ; } - else - { + else + { flags msvc.link .MT $(cond) : $(manifest-tool) -nologo ; - } + } } - } + } # Set version-specific flags configure-version-specific $(version) : $(condition) ; @@ -571,41 +571,44 @@ flags msvc.compile PCH_HEADER on : ; flags msvc.compile PCH_FILE on : ; -rule compile.c ( targets + : sources * : properties * ) +local rule cc-compile ( targets + : sources * : rsp-content * : suffix * ) { - DEPENDS $(<) : [ on $(<) return $(PCH_HEADER) ] ; - DEPENDS $(<) : [ on $(<) return $(PCH_FILE) ] ; + CC_RSPLINE on $(<) = [ on $(<) return -U$(UNDEFS) $(CFLAGS) $(C++FLAGS) $(OPTIONS) -c $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)" -Yu"$(PCH_HEADER:D=)" ] ; } -rule compile.c++ ( targets + : sources * : properties * ) +actions cc-compile { - DEPENDS $(<) : [ on $(<) return $(PCH_HEADER) ] ; - DEPENDS $(<) : [ on $(<) return $(PCH_FILE) ] ; + $(.CC) @"@($(<[1]:W).rsp:E="$(>)"$(nl) -Fo"$(<[1]:W)"$(nl) $(CC_RSPLINE))" } -rule compile.pch ( targets + : sources * : properties * ) +local rule cc-compile-c-c++ ( targets + : sources * : lang-opt ) { - DEPENDS $(<) : [ on $(<) return $(PCH_SOURCE) ] ; + DEPENDS $(<) : [ on $(<) return $(PCH_HEADER) ] ; + DEPENDS $(<) : [ on $(<) return $(PCH_FILE) ] ; + cc-compile $(targets) : $(sources) + : [ on $(<) return "$(>)"$(nl) $(CC_RSPLINE) ] + : [ on $(<) return $(lang-opt) -Fp"$(PCH_FILE:W)" ] ; } - # The actions differ only by explicit selection of input language -actions compile.c bind PCH_HEADER PCH_FILE +rule compile.c ( targets + : sources * : properties * ) { - $(.CC) -TC -U$(UNDEFS) $(CFLAGS) $(OPTIONS) @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)")" -c -Fo"$(<[1]:W)" -Yu"$(PCH_HEADER:D=)" -Fp"$(PCH_FILE:W)" + cc-compile-c-c++ $(<) : $(>) : -TC ; } -actions compile.c++ bind PCH_HEADER PCH_FILE +rule compile.c++ ( targets + : sources * : properties * ) { - $(.CC) -TP -U$(UNDEFS) $(CFLAGS) $(C++FLAGS) $(OPTIONS) @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)")" -c -Fo"$(<[1]:W)" -Yu"$(PCH_HEADER:D=)" -Fp"$(PCH_FILE:W)" + cc-compile-c-c++ $(<) : $(>) : -TP ; } -actions compile.pch bind PCH_SOURCE +rule compile.pch ( targets + : sources * : properties * ) { - $(.CC) -TP -U$(UNDEFS) $(CFLAGS) $(C++FLAGS) $(OPTIONS) @"@($(<[1]:W).rsp:E=$(nl)"$(PCH_SOURCE:W)" $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)")" -c -Fo"$(<[1]:W)" /Yc"$(>[1]:D=)" -Fp"$(<[2]:W)" + DEPENDS $(<) : [ on $(<) return $(PCH_SOURCE) ] ; + cc-compile $(<) : $(>) + : [ on $(<) return $(nl)"$(PCH_SOURCE:W)" $(CC_RSPLINE) ] + : [ on $(<) return -Yc"$(>[1]:D=)" -TP -Fp"$(<[2]:W)" ] ; } - actions compile.rc { $(.RC) -l 0x409 -U$(UNDEFS) -D$(DEFINES) -I"$(INCLUDES)" -fo "$(<:W)" "$(>:W)" @@ -712,7 +715,7 @@ if exist "$(<[1]).manifest" ( $(.MT) -manifest "$(<[1]).manifest" "-outputresource:$(<[1]);1" ) - } + } actions link.dll bind DEF_FILE { @@ -720,7 +723,7 @@ if exist "$(<[1]).manifest" ( $(.MT) -manifest "$(<[1]).manifest" "-outputresource:$(<[1]);2" ) - } + } } else {