Commit 73437f6
committed
Apply work-around for sycl-device-code-split to apply on Windows
In cmake 3.22 using target_link_options result in option inserted
in LINK_FLAGS which places it after -link option and passed directly
to the underlying linker where it is ignored.
This is fixed in cmake 3.25
Also make sure to apply -fsycl-link-huge-device-code on Linux only,
the option is not supported on Windows.1 parent e115f67 commit 73437f6
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
| |||
0 commit comments