summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-10-19 00:51:27 +0000
committerVedant Kumar <vsk@apple.com>2019-10-19 00:51:27 +0000
commitb081220cfd46965fa25dbf826cd3f42f4f9e54cd (patch)
tree51d8b90d992e807c9ffc192b0f7312dd6f2d1c60
parent90c64a3456b972432a21ef043b205c18a91e011b (diff)
downloadbcm5719-llvm-b081220cfd46965fa25dbf826cd3f42f4f9e54cd.tar.gz
bcm5719-llvm-b081220cfd46965fa25dbf826cd3f42f4f9e54cd.zip
[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
-rw-r--r--compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c b/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c
index c6e2fca22d1..7e26e3e6b5d 100644
--- a/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c
+++ b/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c
@@ -1,6 +1,6 @@
// Test __llvm_profile_get_filename when the on-line merging mode is enabled.
//
-// RUN: %clang_pgogen -dynamiclib -o %t.dso %p/Inputs/instrprof-get-filename-dso.c
+// RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c
// RUN: %clang_pgogen -o %t %s %t.dso
// RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t
OpenPOWER on IntegriCloud