CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
REQUIRES: lld-link
|
|
|
|
# Test that DTLTO temporary files are "best-effort" cleaned up unless
|
|
# --save-temps is specified. We use archives in this test as the handling for
|
|
# archives requires a superset of the temporary files used for object inputs.
|
|
|
|
RUN: rm -rf %t && split-file %s %t && cd %t
|
|
|
|
RUN: %clang --target=x86_64-pc-windows-msvc -O2 t1.c -flto=thin -c
|
|
|
|
RUN: lld-link /lib /out:t.lib t1.o
|
|
|
|
DEFINE: %{tdir} = dummy-to-make-lit-work
|
|
DEFINE: %{dtlto} = mkdir %{tdir} && \
|
|
DEFINE: lld-link /subsystem:console /machine:x64 /out:%{tdir}/my.exe \
|
|
DEFINE: /wholearchive:t.lib \
|
|
DEFINE: -thinlto-distributor:%python \
|
|
DEFINE: -thinlto-distributor-arg:%llvm_src_root/utils/dtlto/local.py \
|
|
DEFINE: -thinlto-remote-compiler:%clang
|
|
|
|
# Check that temporary files are removed normally.
|
|
REDEFINE: %{tdir} = empty
|
|
RUN: %{dtlto}
|
|
RUN: ls %{tdir} | sort | FileCheck %s --check-prefixes=BOOKEND,ELF
|
|
|
|
# Check that --save-temps preserves temporary files.
|
|
REDEFINE: %{tdir} = savetemps
|
|
RUN: %{dtlto} /lldsavetemps
|
|
RUN: ls %{tdir} | sort | FileCheck %s --check-prefixes=BOOKEND,TEMPS,ELF,OTHER
|
|
|
|
# No files are expected before.
|
|
BOOKEND-NOT: {{.}}
|
|
TEMPS: {{^}}my.[[#PID:]].dist-file.json{{$}}
|
|
ELF: {{^}}my.exe{{$}}
|
|
OTHER: {{^}}my.exe.resolution.txt{{$}}
|
|
# Filename composition: <archive><member><member offset>.<task>.<pid>.<task>.<pid>.native.o.
|
|
TEMPS: {{^}}t.libt1.o[[#T1_OFFSET:]].1.[[#%X,HEXPID:]].1.[[#PID]].native.o{{$}}
|
|
TEMPS: {{^}}t.libt1.o[[#T1_OFFSET]].1.[[#%X,HEXPID]].1.[[#PID]].native.o.thinlto.bc{{$}}
|
|
TEMPS: {{^}}t.libt1.o[[#T1_OFFSET]].1.[[#%X,HEXPID]].o{{$}}
|
|
# No files are expected after.
|
|
BOOKEND-NOT: {{.}}
|
|
|
|
#--- t1.c
|
|
__attribute__((retain)) int mainCRTStartup() { return 0; }
|