Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 14:30:58 +0000
From:      "Sinha, Prokash" <psinha@panasas.com>
To:        "freebsd-toolchain@freebsd.org" <freebsd-toolchain@freebsd.org>
Subject:   How to enable coverage option in the latest drop of clang/llvm
Message-ID:  <D031B883.1B4C%psinha@panasas.com>

next in thread | raw e-mail | index | archive | help


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?D031B883.1B4C%psinha>