From owner-svn-ports-all@FreeBSD.ORG Thu Feb 13 19:42:23 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BE769972; Thu, 13 Feb 2014 19:42:23 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A88331A51; Thu, 13 Feb 2014 19:42:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1DJgNNF026574; Thu, 13 Feb 2014 19:42:23 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1DJgNIL026573; Thu, 13 Feb 2014 19:42:23 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201402131942.s1DJgNIL026573@svn.freebsd.org> From: Dimitry Andric Date: Thu, 13 Feb 2014 19:42:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344138 - head/devel/boost-libs/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 19:42:23 -0000 Author: dim (src committer) Date: Thu Feb 13 19:42:23 2014 New Revision: 344138 URL: http://svnweb.freebsd.org/changeset/ports/344138 QAT: https://qat.redports.org/buildarchive/r344138/ Log: For clang, use the type of precompiled headers recommended by upstream (generated by -emit-pch), instead of the deprecated ones (generated by -emit-pth). Approved by: bapt Added: head/devel/boost-libs/files/patch-tools__build__v2__tools__clang-linux.jam (contents, props changed) Added: head/devel/boost-libs/files/patch-tools__build__v2__tools__clang-linux.jam ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/boost-libs/files/patch-tools__build__v2__tools__clang-linux.jam Thu Feb 13 19:42:23 2014 (r344138) @@ -0,0 +1,92 @@ +--- tools/build/v2/tools/clang-linux.jam.orig 2011-06-06 22:36:21.000000000 +0200 ++++ tools/build/v2/tools/clang-linux.jam 2014-02-09 22:19:34.000000000 +0100 +@@ -31,7 +31,7 @@ + generators.override clang-linux.compile.c++.pch : pch.default-cpp-pch-generator ; + + type.set-generated-target-suffix PCH +- : clang linux : pth ; ++ : clang linux : pch ; + + toolset.inherit-rules clang-linux : gcc ; + toolset.inherit-flags clang-linux : gcc +@@ -95,24 +95,24 @@ + gcc.setup-fpic $(targets) : $(sources) : $(properties) ; + gcc.setup-address-model $(targets) : $(sources) : $(properties) ; + +- local pth-file = [ on $(<) return $(PCH_FILE) ] ; ++ local pch-file = [ on $(<) return $(PCH_FILE) ] ; + +- if $(pth-file) { +- DEPENDS $(<) : $(pth-file) ; ++ if $(pch-file) { ++ DEPENDS $(<) : $(pch-file) ; + clang-linux.compile.c++.with-pch $(targets) : $(sources) ; + } + else { +- clang-linux.compile.c++.without-pth $(targets) : $(sources) ; ++ clang-linux.compile.c++.without-pch $(targets) : $(sources) ; + } + } + +-actions compile.c++.without-pth { ++actions compile.c++.without-pch { + "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)" + } + + actions compile.c++.with-pch bind PCH_FILE + { +- "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pth -Xclang "$(PCH_FILE)" -o "$(<)" "$(>)" ++ "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pch -Xclang "$(PCH_FILE)" -o "$(<)" "$(>)" + } + + rule compile.c ( targets * : sources * : properties * ) +@@ -121,25 +121,25 @@ + gcc.setup-fpic $(targets) : $(sources) : $(properties) ; + gcc.setup-address-model $(targets) : $(sources) : $(properties) ; + +- local pth-file = [ on $(<) return $(PCH_FILE) ] ; ++ local pch-file = [ on $(<) return $(PCH_FILE) ] ; + +- if $(pth-file) { +- DEPENDS $(<) : $(pth-file) ; ++ if $(pch-file) { ++ DEPENDS $(<) : $(pch-file) ; + clang-linux.compile.c.with-pch $(targets) : $(sources) ; + } + else { +- clang-linux.compile.c.without-pth $(targets) : $(sources) ; ++ clang-linux.compile.c.without-pch $(targets) : $(sources) ; + } + } + +-actions compile.c.without-pth ++actions compile.c.without-pch + { + "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" + } + + actions compile.c.with-pch bind PCH_FILE + { +- "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pth -Xclang "$(PCH_FILE)" -c -o "$(<)" "$(>)" ++ "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pch -Xclang "$(PCH_FILE)" -c -o "$(<)" "$(>)" + } + + ############################################################################### +@@ -152,7 +152,7 @@ + } + + actions compile.c++.pch { +- rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pth -o "$(<)" "$(>)" ++ rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pch -o "$(<)" "$(>)" + } + + rule compile.c.pch ( targets * : sources * : properties * ) { +@@ -163,7 +163,7 @@ + + actions compile.c.pch + { +- rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pth -o "$(<)" "$(>)" ++ rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pch -o "$(<)" "$(>)" + } + + ###############################################################################