Skip to content

Commit b081220

Browse files
committed
[profile] Use -fPIC -shared in a test instead of -dynamiclib
This is more portable than -dynamiclib. Also, fix the path to an input file that broke when the test was moved in r375315. llvm-svn: 375317
1 parent 90c64a3 commit b081220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test __llvm_profile_get_filename when the on-line merging mode is enabled.
22
//
3-
// RUN: %clang_pgogen -dynamiclib -o %t.dso %p/Inputs/instrprof-get-filename-dso.c
3+
// RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c
44
// RUN: %clang_pgogen -o %t %s %t.dso
55
// RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t
66

0 commit comments

Comments
 (0)