llvm-project/clang/test/Driver/noprofilelib.c
Petr Hosek 08cb342afa [Driver] -noprofilelib flag
This flag is analoguous to other flags like -nostdlib or -nolibc
and could be used to disable linking of profile runtime library.
This is useful in certain environments like kernel, where profile
instrumentation is still desirable, but we cannot use the standard
runtime library.

llvm-svn: 365808
2019-07-11 19:06:38 +00:00

6 lines
269 B
C

// RUN: %clang -target i686-pc-linux-gnu -### %s 2>&1 \
// RUN: -fprofile-generate -noprofilelib | FileCheck %s
// RUN: %clang -target i686-pc-linux-gnu -### %s 2>&1 \
// RUN: -fprofile-instr-generate -noprofilelib | FileCheck %s
// CHECK-NOT: clang_rt.profile