|
634 | 634 | // CHECK-LD-NOLIBSYCL: "{{.*}}ld{{(.exe)?}}"
|
635 | 635 | // CHECK-LD-NOLIBSYCL-NOT: "-lsycl"
|
636 | 636 |
|
| 637 | +/// Check no SYCL runtime is linked with -nostdlib |
| 638 | +// RUN: %clang -fsycl -nostdlib -target x86_64-unknown-linux-gnu %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LD-NOSTDLIB %s |
| 639 | +// CHECK-LD-NOSTDLIB: "{{.*}}ld{{(.exe)?}}" |
| 640 | +// CHECK-LD-NOSTDLIB-NOT: "-lsycl" |
| 641 | + |
637 | 642 | /// Check for default linking of sycl.lib with -fsycl usage
|
638 | 643 | // RUN: %clang -fsycl -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL %s
|
639 | 644 | // RUN: %clang_cl -fsycl %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-CL %s
|
|
643 | 648 |
|
644 | 649 | /// Check no SYCL runtime is linked with -nolibsycl
|
645 | 650 | // RUN: %clang -fsycl -nolibsycl -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOLIBSYCL %s
|
646 |
| -// RUN: %clang_cl -fsycl -nolibsycl %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOLIBSYCL %s |
647 |
| -// CHECK-LINK-NOLIBSYCL-NOT: "--dependent-lib=sycl" |
| 651 | +// RUN: %clang_cl -fsycl -nolibsycl %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOLIBSYCL-CL %s |
| 652 | +// CHECK-LINK-NOLIBSYCL-CL-NOT: "--dependent-lib=sycl" |
648 | 653 | // CHECK-LINK-NOLIBSYCL: "{{.*}}link{{(.exe)?}}"
|
649 | 654 | // CHECK-LINK-NOLIBSYCL-NOT: "-defaultlib:sycl.lib"
|
650 | 655 |
|
| 656 | +/// Check SYCL runtime is linked despite -nostdlib on Windows, this is |
| 657 | +/// necessary for the Windows Clang CMake to work |
| 658 | +// RUN: %clang -fsycl -nostdlib -target x86_64-unknown-windows-msvc %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOSTDLIB %s |
| 659 | +// RUN: %clang_cl -fsycl -nostdlib %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-NOSTDLIB-CL %s |
| 660 | +// CHECK-LINK-NOSTDLIB-CL: "--dependent-lib=sycl" |
| 661 | +// CHECK-LINK-NOSTDLIB: "{{.*}}link{{(.exe)?}}" |
| 662 | +// CHECK-LINK-NOSTDLIB: "-defaultlib:sycl.lib" |
| 663 | + |
651 | 664 | /// Check sycld.lib is chosen with /MDd
|
652 | 665 | // RUN: %clang_cl -fsycl /MDd %s -o %t -### 2>&1 | FileCheck -check-prefix=CHECK-LINK-SYCL-DEBUG %s
|
653 | 666 | // CHECK-LINK-SYCL-DEBUG: "--dependent-lib=sycld"
|
|
0 commit comments