看板 Dfbsd_Submit
作者
留言 0則留言,0人參與討論
推噓 0  ( 0推 0噓 0→ )
Issue #2205 has been reported by Juan Francisco Cantero Hurtado. ---------------------------------------- Submit #2205: [PATCH] Fixes in libexec/custom/cc http://bugs.dragonflybsd.org/issues/2205 Author: Juan Francisco Cantero Hurtado Status: New Priority: Normal Assignee: Category: Target version: - Removed unnecessary code with the actual versions of clang. - Removed the conditional code for cpp. Authors: Sascha Wildner <[email protected]> Juan Francisco Cantero Hurtado <[email protected]> --- libexec/customcc/cc.sh | 28 +++------------------------- 1 files changed, 3 insertions(+), 25 deletions(-) diff --git a/libexec/customcc/cc.sh b/libexec/customcc/cc.sh index 8755ef6..ae537af 100644 --- a/libexec/customcc/cc.sh +++ b/libexec/customcc/cc.sh @@ -3,31 +3,9 @@ CDIR=$(dirname $0) CNAME=$(basename $0) -# XXX clang needs some special handling -# -# it is called only for "cc" and "gcc" and even then it could have been -# run on c++ files -# -if [ "${CCVER}" = "clang" ]; then - if [ "${CNAME}" = "cpp" ]; then - exec ${CDIR}/../gcc41/cpp "[email protected]" - elif [ "${CNAME}" = "c++" -o "${CNAME}" = "g++" ]; then - exec ${CDIR}/../gcc41/c++ "[email protected]" - elif [ -z $beenhere ]; then - export beenhere=1 - oldargs="[email protected]" - export oldargs - INCOPT="-nobuiltininc -nostdinc \ - -isysroot @@[email protected]@ \ - -isystem /usr/include \ - -isystem /usr/libdata/gcc41 \ - -isystem /usr/include/c++/4.1" - elif [ "${CNAME}" = "cc" -o "${CNAME}" = "gcc" ]; then - exec ${CDIR}/../gcc41/cc $oldargs - fi -elif [ "${CCVER}" = "clangsvn" ]; then - if [ "${CNAME}" = "cpp" ]; then - exec ${CDIR}/../gcc41/cpp "[email protected]" +if [ "${CCVER}" = "clang" -o "${CCVER}" = "clangsvn" ]; then + if [ "${CNAME}" = "g++" -o "${CNAME}" = "c++" -o "${CNAME}" = "cc1plus" ]; then + exec ${CDIR}/../gcc44/g++ "[email protected]" else INCOPT="-nobuiltininc -nostdinc \ -isysroot @@[email protected]@ \ -- Juan Francisco Cantero Hurtado http://juanfra.info -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account