[compiler-rt] r375317 - [profile] Use -fPIC -shared in a test instead of -dynamiclib
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 17:51:28 PDT 2019
Author: vedantk
Date: Fri Oct 18 17:51:27 2019
New Revision: 375317
URL: http://llvm.org/viewvc/llvm-project?rev=375317&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/test/profile/Posix/instrprof-get-filename-merge-mode.c
Modified: compiler-rt/trunk/test/profile/Posix/instrprof-get-filename-merge-mode.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Posix/instrprof-get-filename-merge-mode.c?rev=375317&r1=375316&r2=375317&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Posix/instrprof-get-filename-merge-mode.c (original)
+++ compiler-rt/trunk/test/profile/Posix/instrprof-get-filename-merge-mode.c Fri Oct 18 17:51:27 2019
@@ -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
More information about the llvm-commits
mailing list