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
49 lines
2.3 KiB
Plaintext
49 lines
2.3 KiB
Plaintext
# RUN: mkdir -p %t.dir
|
|
# RUN: cp %p/Inputs/hello64.obj %t.dir
|
|
# RUN: cp %p/Inputs/std64.lib %t.dir
|
|
|
|
# RUN: not lld-link /out:%t.exe /entry:main /subsystem:console \
|
|
# RUN: hello64.obj /defaultlib:std64.lib >& %t.log
|
|
# RUN: FileCheck -DMSG=%errc_ENOENT -check-prefix=CHECK1 %s < %t.log
|
|
|
|
# RUN: not lld-link /out:%t.exe /entry:main /subsystem:console \
|
|
# RUN: hello64 /defaultlib:std64.lib >& %t.log
|
|
# RUN: FileCheck -DMSG=%errc_ENOENT -check-prefix=CHECK2 %s < %t.log
|
|
|
|
# RUN: lld-link /libpath:%t.dir /out:%t.exe /entry:main \
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64.lib \
|
|
# RUN: /nodefaultlib:std64.lib >& %t.log || true
|
|
# RUN: FileCheck -check-prefix=CHECK3 %s < %t.log
|
|
|
|
# RUN: lld-link /libpath:%t.dir /out:%t.exe /entry:main \
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64 \
|
|
# RUN: /nodefaultlib:std64.lib >& %t.log || true
|
|
# RUN: FileCheck -check-prefix=CHECK3 %s < %t.log
|
|
|
|
CHECK1: error: could not open 'hello64.obj': [[MSG]]
|
|
CHECK2: error: could not open 'hello64': [[MSG]]
|
|
CHECK3: error: undefined symbol: MessageBoxA
|
|
CHECK3-NEXT: >>> referenced by {{.*}}hello64.obj:(main)
|
|
|
|
# RUN: lld-link /libpath:%t.dir /out:%t.exe /entry:main \
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64.lib
|
|
|
|
# RUN: env LIB=%t.dir lld-link /out:%t.exe /entry:main \
|
|
# RUN: /subsystem:console hello64.obj /defaultlib:std64.lib
|
|
|
|
MSVC stamps uppercase references in OBJ directives, thus ensure that passing lowercase 'libcmt' and 'oldnames' to /nodefaultlib works.
|
|
# RUN: lld-link %S/Inputs/precomp.obj %S/Inputs/precomp-a.obj %S/Inputs/precomp-b.obj /nodefaultlib:libcmt /nodefaultlib:oldnames /entry:main /debug /pdb:%t.pdb /out:%t.exe /opt:ref /opt:icf
|
|
# RUN: llvm-pdbutil dump -modules %t.pdb | FileCheck %s -check-prefix UPPERCASE
|
|
|
|
UPPERCASE-NOT: OLDNAMES
|
|
UPPERCASE-NOT: LIBCMT
|
|
|
|
# RUN: yaml2obj -o %t.dir/defaultlib.obj %p/Inputs/defaultlib.yaml
|
|
# RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64
|
|
# RUN: cp %p/Inputs/ret42.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64/default.lib
|
|
|
|
# RUN: lld-link /winsysroot:%t.dir/sysroot /out:%t.exe /entry:main /subsystem:console %t.dir/defaultlib.obj
|
|
# RUN: not lld-link /winsysroot:%t.dir/sysroot /out:%t.exe /entry:main /subsystem:console /nodefaultlib:default.lib %t.dir/defaultlib.obj 2>&1 | FileCheck -check-prefix=CHECK4 %s
|
|
|
|
CHECK4: error: <root>: undefined symbol: main
|