mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
1a6d5eb0da
As a follow on to D96282, since bug point passes is built as a module the proper file extension to use is LLVM_PLUGIN_EXT, rather than SHLIBEXT. Using SHLIBEXT causes the tests to load a non-existent file on AIX. We also adjust the PluginsTest unittest to use LLVM_PLUGIN_EXT for similar reasons. This change should hopefully make little difference to other platforms, since generally `SHLIBEXT=LTDL_SHLIB_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` and `LLVM_PLUGIN_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` on every platform except AIX. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D101412
13 lines
432 B
LLVM
13 lines
432 B
LLVM
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext --compile-custom --compile-command="%python %/s.py arg1 arg2" --output-prefix %t %s | FileCheck %s
|
|
; REQUIRES: plugins
|
|
|
|
; Test that arguments are correctly passed in --compile-command. The output
|
|
; of bugpoint includes the output of the custom tool, so we just echo the args
|
|
; in the tool and check here.
|
|
|
|
; CHECK: Error: arg1 arg2
|
|
|
|
define void @noop() {
|
|
ret void
|
|
}
|