diff options
| author | evgeny <eleviant@accesssoftek.com> | 2019-10-24 14:10:03 +0300 |
|---|---|---|
| committer | evgeny <eleviant@accesssoftek.com> | 2019-10-24 14:10:03 +0300 |
| commit | 1ae8e8d25fd87048d3d8d7429308e52b236c79a1 (patch) | |
| tree | cf1938e0d26dd4ee0298a6572a07a1ac32febb39 /clang/test | |
| parent | 6d11abfe3507ec6d8bdac4c79ef7249abd3fdc07 (diff) | |
| download | bcm5719-llvm-1ae8e8d25fd87048d3d8d7429308e52b236c79a1.tar.gz bcm5719-llvm-1ae8e8d25fd87048d3d8d7429308e52b236c79a1.zip | |
Don't add -fsplit-lto-unit for thin LTO builds with PS4 and Darwin toolchains
These toolchains use legacy thin LTO API, which is not capable of unit splitting
Differential revision: https://reviews.llvm.org/D69173
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/split-lto-unit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/split-lto-unit.c b/clang/test/Driver/split-lto-unit.c index d2ed253ca20..66314161c94 100644 --- a/clang/test/Driver/split-lto-unit.c +++ b/clang/test/Driver/split-lto-unit.c @@ -3,6 +3,10 @@ // RUN: %clang -target x86_64-unknown-linux -### %s -flto=thin -fno-split-lto-unit 2>&1 | FileCheck --check-prefix=NOUNIT %s // RUN: %clang -target x86_64-unknown-linux -### %s -flto=thin -fno-split-lto-unit -fwhole-program-vtables 2>&1 | FileCheck --check-prefix=ERROR1 %s // RUN: %clang -target x86_64-unknown-linux -### %s -flto=thin -fno-split-lto-unit -fsanitize=cfi 2>&1 | FileCheck --check-prefix=ERROR2 %s +// RUN: %clang -target x86_64-apple-darwin13.3.0 -### %s -fwhole-program-vtables -flto=full 2>&1 | FileCheck --check-prefix=UNIT %s +// RUN: %clang -target x86_64-apple-darwin13.3.0 -### %s -fwhole-program-vtables -flto=thin 2>&1 | FileCheck --check-prefix=NOUNIT %s +// RUN: %clang -target x86_64-scei-ps4 -### %s -fwhole-program-vtables -flto=full 2>&1 | FileCheck --check-prefix=UNIT %s +// RUN: %clang -target x86_64-scei-ps4 -### %s -fwhole-program-vtables -flto=thin 2>&1 | FileCheck --check-prefix=NOUNIT %s // UNIT: "-fsplit-lto-unit" // NOUNIT-NOT: "-fsplit-lto-unit" |

