From owner-freebsd-toolchain@FreeBSD.ORG Sun Sep 7 14:31:01 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66BAEEE for ; Sun, 7 Sep 2014 14:31:01 +0000 (UTC) Received: from mon-colo.panasas.com (mon-colo.panasas.com [209.166.131.137]) by mx1.freebsd.org (Postfix) with ESMTP id 25E1D1D3B for ; Sun, 7 Sep 2014 14:31:00 +0000 (UTC) Received: from seabiscuit.panasas.com ([172.17.132.204]) by mon-colo.panasas.com with Microsoft SMTPSVC(7.0.6001.18000); Sun, 7 Sep 2014 10:30:59 -0400 Received: from SEABISCUIT.int.panasas.com ([172.17.132.204]) by seabiscuit ([172.17.132.204]) with mapi id 14.03.0181.006; Sun, 7 Sep 2014 07:30:58 -0700 From: "Sinha, Prokash" To: "freebsd-toolchain@freebsd.org" Subject: How to enable coverage option in the latest drop of clang/llvm Thread-Topic: How to enable coverage option in the latest drop of clang/llvm Thread-Index: AQHPyqhX6WYHefv+xkihoT1C9iNBKA== Date: Sun, 7 Sep 2014 14:30:58 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.142.185] Content-Type: text/plain; charset="us-ascii" Content-ID: <6C9A205F32ADC44D8E9BCFCCD65B0BFE@panasas.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 07 Sep 2014 14:30:59.0668 (UTC) FILETIME=[57FF0140:01CFCAA8] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 14:31:01 -0000 Hi All, Initially I was having problem compiling clang/llvm, then found some of the= compilation error. Now I can build it on freebsd 10. But I need to have the coverage option on. On Mac it is still there - bash$ clang --coverage main.c -### Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin12.5.0 Thread model: posix "/usr/bin/clang" "-cc1" "-triple" "x86_64-apple-macosx10.8.0" "-emit-obj" = "-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "m= ain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mdisable-fp-elim" "-ma= sm-verbose" "-munwind-tables" "-target-cpu" "core2" "-target-linker-version= " "236.3" "-femit-coverage-notes" "-femit-coverage-data" "-resource-dir" "/= usr/bin/../lib/clang/5.1" "-fdebug-compilation-dir" "/fs/home/psinha/mystuf= f/pgms" "-ferror-limit" "19" "-fmessage-length" "80" "-stack-protector" "1"= "-mstackrealign" "-fblocks" "-fobjc-runtime=3Dmacosx-10.8.0" "-fencode-ext= ended-block-signature" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-= vectorize-slp" "-o" "/var/folders/65/gpz82csd1_s358m49000073r0001ry/T/main-= 746665.o" "-x" "c" "main.c" "/usr/bin/ld" "-demangle" "-dynamic" "-arch" "x86_64" "-macosx_version_min= " "10.8.0" "-o" "a.out" "/var/folders/65/gpz82csd1_s358m49000073r0001ry/T/m= ain-746665.o" "/usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.profile_osx= .a" "-lSystem" "/usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a" Thanks, prokash