-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Creating version-agnostic copy of the SYCL import library (#12889
) Reason why this is needed is because some users want to explicitly link with sycl library and they don't want to update version all the time. It is possible to generate only version-agnostic .lib files but I think we need to keep versioned files as well in case if somebody will have a scenario when multiple releases are in the LIB env variable and they want to link with specific version explicitly.
- Loading branch information
Showing
2 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// REQUIRES: windows | ||
|
||
// RUN: %clangxx --driver-mode=cl /std:c++17 /EHsc -I%sycl_include -I%opencl_include_dir %s -o %t.out /link /defaultlib:%sycl_static_libs_dir/sycl.lib | ||
// RUN: %{run} %t.out | ||
|
||
// This test checks that if program is linked with version-agnostic import library sycl.lib then sycl program works as expected. | ||
// It is expected to crash if correct dll can't be loaded. | ||
|
||
#include <iostream> | ||
#include <sycl/sycl.hpp> | ||
|
||
using namespace sycl; | ||
|
||
int main() { | ||
queue q; | ||
} |