forked from OSchip/llvm-project
[compiler-rt][profile][AIX] pass extra link opts for test
The AIX linker doesn't export any symbols by default, so an export list is usually used. Since clang doesn't have the tools to auto-generate an export list yet, just pass the linker an extra opt to tell it to export everything. This is generally not recommended for real shared libs, but is fine for the purpose of this test. Differential Revision: https://reviews.llvm.org/D118101
This commit is contained in:
parent
ce5b04cc04
commit
a09be08594
|
@ -1,6 +1,6 @@
|
|||
// Test __llvm_profile_get_filename when the on-line merging mode is enabled.
|
||||
//
|
||||
// RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c
|
||||
// RUN: %clang_pgogen -fPIC -shared %shared_linker_xopts -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
|
||||
|
||||
|
|
|
@ -7,3 +7,10 @@ root = getRoot(config)
|
|||
|
||||
if root.host_os in ['Windows']:
|
||||
config.unsupported = True
|
||||
|
||||
# AIX usually usually makes use of an explicit export list when linking a shared
|
||||
# object, but for the purposes of these tests just export all symbols.
|
||||
if root.host_os in ['AIX']:
|
||||
config.substitutions.append(('%shared_linker_xopts', '-Wl,-bexpfull'))
|
||||
else:
|
||||
config.substitutions.append(('%shared_linker_xopts', ''))
|
||||
|
|
Loading…
Reference in New Issue