diff options
author | Vedant Kumar <vsk@apple.com> | 2019-10-19 00:51:27 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2019-10-19 00:51:27 +0000 |
commit | 89a8e62c03aa2cfe044c9023ec3bbaefb835a7df (patch) | |
tree | bf3fc3a3859406468e71587b726b252d00ceba66 | |
parent | d59bde52167f18b585d2828a8fd83506ee14fd0e (diff) | |
download | compiler-rt-89a8e62c03aa2cfe044c9023ec3bbaefb835a7df.tar.gz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@375317 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/profile/Posix/instrprof-get-filename-merge-mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/Posix/instrprof-get-filename-merge-mode.c b/test/profile/Posix/instrprof-get-filename-merge-mode.c index c6e2fca22..7e26e3e6b 100644 --- a/test/profile/Posix/instrprof-get-filename-merge-mode.c +++ b/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 |