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
65 lines
3.2 KiB
Plaintext
65 lines
3.2 KiB
Plaintext
Check that /winsysroot results in the correct machine-specific subdirectory
|
|
being searched for the defaultlibs, for a 32-bit .obj.
|
|
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
|
# RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86
|
|
# RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64
|
|
# RUN: cp %p/Inputs/std32.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86
|
|
# RUN: cp %p/Inputs/std64.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64
|
|
# RUN: lld-link %t.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: /defaultlib:std32 /entry:main@0
|
|
|
|
Check the same for a 64-bit input .obj.
|
|
# RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: /defaultlib:std64 /entry:main
|
|
|
|
Check directly passed lib with /machine:
|
|
# RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot /machine:x64 \
|
|
# RUN: std64.lib /entry:main
|
|
|
|
# RUN: lld-link %t.obj /winsysroot:%t.dir/sysroot /machine:x86 \
|
|
# RUN: std32.lib /entry:main
|
|
|
|
Check directly passed lib without /machine: (should infer from obj arch)
|
|
# RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: std64.lib /entry:main
|
|
|
|
# RUN: lld-link %t.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: std32.lib /entry:main
|
|
|
|
Check that passing a lib from /winsysroot twice is ok
|
|
# RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: std64.lib std64.lib /entry:main
|
|
|
|
Check unknown library
|
|
# RUN: not lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: notfound.lib /entry:main 2>&1 | FileCheck --check-prefix=UNKNOWNLIB %s
|
|
UNKNOWNLIB: could not open 'notfound.lib'
|
|
|
|
If winsysroot lib appears before we can detect arch we don't find it
|
|
# RUN: not lld-link std64.lib %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: /entry:main 2>&1 | FileCheck --check-prefix=NO64 %s
|
|
|
|
Check we don't choose the wrong arch
|
|
# RUN: not lld-link %t.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: std64.lib /entry:main 2>&1 | FileCheck --check-prefix=NO64 %s
|
|
NO64: could not open 'std64.lib'
|
|
|
|
# RUN: not lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \
|
|
# RUN: std32.lib /entry:main 2>&1 | FileCheck --check-prefix=NO32 %s
|
|
NO32: could not open 'std32.lib'
|
|
|
|
Check that when /winsysroot is specified, %LIB% is ignored.
|
|
# RUN: env LIB=%t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86 not lld-link %t.obj /winsysroot:%t.dir/doesnotexist /defaultlib:std32 2>&1 | FileCheck -check-prefix=LIBIGNORED %s
|
|
LIBIGNORED: could not open 'std32.lib'
|
|
|
|
Check that when -lldmingw is specified, %LIB% is ignored.
|
|
# RUN: env LIB=%t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86 not lld-link -lldmingw %t.obj /defaultlib:std32 2>&1 | FileCheck -check-prefix=LIBIGNORED_MINGW %s
|
|
LIBIGNORED_MINGW: could not open 'libstd32.a'
|
|
|
|
# RUN: not lld-link -lldmingw %t.obj /defaultlib:std32 /winsysroot:%t.dir/sysroot 2>&1 | FileCheck -check-prefix=IGNORED_ARG %s
|
|
IGNORED_ARG: warning: ignoring /vctoolsdir or /winsysroot flags in MinGW mode
|
|
|
|
Check that when /winsdkversion is specified, %LIB% is ignored.
|
|
# RUN: env LIB=%t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86 not lld-link %t.obj /winsdkversion:99.99.9999.9 /defaultlib:std32 2>&1 | FileCheck -check-prefix=WINSDKVERSION %s
|
|
WINSDKVERSION: could not open 'std32.lib'
|