Commit 2e591fb
authored
[SYCL] Fix passing extra clang flags to lit tests (#4110)
`CFLAGS` is a `make` environment variable so its contents were not used
by the lit tests which call `clang` directly.
Adding them to the `additional_flags` of `use_clang`, adds them to the
`%clangxx` substitutions and ensures they are passed around everywhere.
In addition these extra flags were only set on Linux because they were
used for Linux C++ library assertions, but now they will be set on both
Linux and Windows, however the Linux C++ library assertions defines will
only be set on Linux.
This also allows users to add custom clang parameters to the lit tests
through the `SYCL_CLANG_EXTRA_FLAGS` CMake parameter. Which will be a
requirement for the ROCm AMD lit tests as for AMD the target needs to be
specified with `-mcpu`.1 parent e239fdf commit 2e591fb
3 files changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
0 commit comments