Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2014 15:26:03 +0000
From:      "Sinha, Prokash" <psinha@panasas.com>
To:        "freebsd-toolchain@freebsd.org" <freebsd-toolchain@freebsd.org>
Subject:   Re: How to enable coverage option in the latest drop of clang/llvm
Message-ID:  <D03317D4.1B7C%psinha@panasas.com>
In-Reply-To: <D031B883.1B4C%psinha@panasas.com>
References:  <D031B883.1B4C%psinha@panasas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Sinha>, Prokash Sinha <psinha@panasas.com<mailto:psinha@panasas.com>=
>
Date: Sunday, September 7, 2014 7:30 AM
To: "freebsd-toolchain@freebsd.org<mailto:freebsd-toolchain@freebsd.org>" <=
freebsd-toolchain@freebsd.org<mailto: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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D03317D4.1B7C%psinha>