Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[SYCL][Driver] Link with sycl libs at link step of clang-cl -…
…fsycl (intel#12793)" (intel#13326) This reverts commit d6eecfa. This was commit was trying to cover the scenario: ``` clang-cl -I[path to sycl headers] sycl_program.cpp clang-cl -fsycl sycl_program.obj ``` and automatically link with sycl library at link step in such case. But problem is that at link step there is no way to know if -fsycl -MDd option was used at compile step or not. if -fsycl -MDd is used at compilation step then driver adds --dependent-lib=msvcrtd --dependent-lib=sycl7d options: `clang-cl -fsycl -MDd sycl_program.cpp # --dependent-lib=msvcrtd --dependent-lib=sycl7d` If then user links the program like this (without -MDd): `clang-cl -fsycl sycl_program.obj` then we will also link with sycl7 library (release version) which will cause a problem. Because at link step we don't know if we need to use debug of release version of the library. So, from my understanding this case: ``` clang-cl -I[path to sycl headers] sycl_program.cpp clang-cl -fsycl sycl_program.obj ``` can't be supported and needs to be considered as user's mistake.
- Loading branch information