llvm-project/llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test
Xiang Li 4ec7dff27d [CMake] Only set LLVM_DEFAULT_TARGET_TRIPLE to LLVM_HOST_TRIPLE when native target is enabled
This is for case when native target like X86 is not in LLVM_TARGETS_TO_BUILD.
Right now LLVM_DEFAULT_TARGET_TRIPLE is set to LLVM_HOST_TRIPLE even when native target is not enabled,
As a result, many lit tests will fail because default_triple is set for lit test but not enabled when build LLVM.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D134972
2022-11-04 14:34:38 -07:00

15 lines
541 B
Plaintext

# RUN: opt -module-summary %p/Inputs/main-mod.ll -o main-mod.bc
# RUN: opt -module-summary %p/Inputs/foo-mod.ll -o foo-mod.bc
# RUN: opt -module-summary %p/Inputs/bar-mod.ll -o bar-mod.bc
# REQUIRES: default_triple
# RUN: llvm-lto -thinlto -o main-foo-bar main-mod.bc foo-mod.bc bar-mod.bc
# RUN: LLJITWithThinLTOSummaries main-foo-bar.thinlto.bc 2>&1 | FileCheck %s
# CHECK: About to load module: main-mod.bc
# CHECK: About to load module: foo-mod.bc
# CHECK: About to load module: bar-mod.bc
# CHECK: 'main' finished with exit code: 0