xref: /llvm-project/bolt/test/X86/dwarf5-override-comp-dir.test (revision 7d272722fb971d9a8788cf1d75f26b314bca928a)
1; REQUIRES: system-linux
2
3; RUN: rm -rf %t
4; RUN: mkdir %t
5; RUN: cd %t
6; RUN: mkdir temp
7; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-input-lowpc-ranges-main.s \
8; RUN: -split-dwarf-file=main.dwo -o main.o
9; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o -o main.exe
10; RUN: cd temp
11; RUN: llvm-bolt ../main.exe -o ../main.exe.bolt --update-debug-sections -v 1 --comp-dir-override=%t
12; RUN: cd ..
13; RUN: ls -lat | FileCheck %s -check-prefix=BOLT-CHECK
14
15;; Tests that BOLT processes .dwo files with --comp-dir-override.
16
17; BOLT-CHECK: main.dwo.dwo
18