From owner-freebsd-toolchain@FreeBSD.ORG Mon Sep 8 15:26:13 2014 Return-Path: Delivered-To: freebsd-toolchain@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 1A571205 for ; Mon, 8 Sep 2014 15:26:13 +0000 (UTC) Received: from mon-colo.panasas.com (mon-colo.panasas.com [209.166.131.137]) by mx1.freebsd.org (Postfix) with ESMTP id B9DA81CF1 for ; Mon, 8 Sep 2014 15:26:12 +0000 (UTC) Received: from seabiscuit.panasas.com ([172.17.132.204]) by mon-colo.panasas.com with Microsoft SMTPSVC(7.0.6001.18000); Mon, 8 Sep 2014 11:26:04 -0400 Received: from SEABISCUIT.int.panasas.com ([172.17.132.204]) by seabiscuit ([172.17.132.204]) with mapi id 14.03.0181.006; Mon, 8 Sep 2014 08:26:04 -0700 From: "Sinha, Prokash" To: "freebsd-toolchain@freebsd.org" Subject: Re: 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+xkihoT1C9iNBKJv3XR+A Date: Mon, 8 Sep 2014 15:26:03 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.133.204] Content-Type: text/plain; charset="Windows-1252" Content-ID: <90A0BA71D33ED24493CEF6F27ADB7DC3@panasas.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 08 Sep 2014 15:26:04.0833 (UTC) FILETIME=[3470E910:01CFCB79] 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: Mon, 08 Sep 2014 15:26:13 -0000 Can someone please enlighten me on this=85 __ The freebsd10 stable does not have the =97coverage option working. Wher= eas mac X with Xcode handles this as per my experiment. __ So I should have some flags or something from the configure options that= I can use to have this enabled. If not, then please help me understand this. Thanks -prokash From: , Prokash Sinha = > Date: Sunday, September 7, 2014 7:30 AM To: "freebsd-toolchain@freebsd.org" <= freebsd-toolchain@freebsd.org> Subject: How to enable coverage option in the latest drop of clang/llvm 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