Commit 8735bb8
authored
[SYCL][Driver] Make /MD default with -fsycl for clang/clang++ drivers (#2480)
SYCL library is designed such a way that STL objects must cross the sycl.dll
boundary, which is guaranteed to work safe on Windows only if the runtime
in the app using sycl.dll and in sycl.dll is the same and is dynamic.
It is not possible to implement safe approach for using sycl libraries
built/linked with static C++ RT as it would cause having multiple copies
of C++ objects (such as scheduler, etc), which are supposed to be
singletones.
sycl.dll is built with /MD (linked to dynamic C++ RT), this is why this patch
makes /MD default with -fsycl for clang and clang++ drivers.1 parent a09aed0 commit 8735bb8
File tree
3 files changed
+24
-4
lines changed- clang
- lib/Driver/ToolChains
- test/Driver
3 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6258 | 6258 | | |
6259 | 6259 | | |
6260 | 6260 | | |
| 6261 | + | |
| 6262 | + | |
| 6263 | + | |
| 6264 | + | |
| 6265 | + | |
| 6266 | + | |
| 6267 | + | |
| 6268 | + | |
| 6269 | + | |
| 6270 | + | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
6261 | 6274 | | |
6262 | 6275 | | |
6263 | 6276 | | |
| |||
6836 | 6849 | | |
6837 | 6850 | | |
6838 | 6851 | | |
6839 | | - | |
6840 | | - | |
| 6852 | + | |
6841 | 6853 | | |
6842 | 6854 | | |
6843 | 6855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
0 commit comments