mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
ed2ba72592
When a LLVM binary such as llvm-*-fuzzer is built with libc++, it has dependency on libc++. The path to find shared libraries specified in llvm-*-fuzzer is relative. As a result, these binaries cannot be copied to an arbitrary directory and launched from there. Changes in this patch add a LIT feature to indicate that libc++ is used to build and, based on the feature exclude test cases that test by copying llvm-*-fuzzer binaries to a directory. Reviewers: hubert.reinterpretcast, dberris, amyk, jasonliu, EricWF Reviewed By: hubert.reinterpretcast, amyk Subscribers: javed.absar, jsji, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61265 llvm-svn: 360672
22 lines
822 B
LLVM
22 lines
822 B
LLVM
; If the binary looks up libraries using an rpath, we can't test this
|
|
; without copying the whole lib dir or polluting the build dir.
|
|
; REQUIRES: static-libs
|
|
; REQUIRES: aarch64-registered-target
|
|
|
|
; The above also applies if the binary is built with libc++.
|
|
; UNSUPPORTED: libcxx-used
|
|
|
|
; RUN: echo > %t.input
|
|
|
|
; RUN: cp llvm-isel-fuzzer %t.bin--aarch64
|
|
; RUN: %t.bin--aarch64 %t.input 2>&1 | FileCheck -check-prefix=AARCH64 %s
|
|
; AARCH64: Injected args: -mtriple=aarch64
|
|
|
|
; RUN: cp llvm-isel-fuzzer %t.bin--aarch64-O1
|
|
; RUN: %t.bin--aarch64-O1 %t.input 2>&1 | FileCheck -check-prefix=OPT-AFTER %s
|
|
; OPT-AFTER: Injected args: -mtriple=aarch64 -O1
|
|
|
|
; RUN: cp llvm-isel-fuzzer %t.bin--O3-aarch64
|
|
; RUN: %t.bin--O3-aarch64 %t.input 2>&1 | FileCheck -check-prefix=OPT-BEFORE %s
|
|
; OPT-BEFORE: Injected args: -O3 -mtriple=aarch64
|