Commit d99183b
authored
[Driver][SYCL] Compile source file for integration header generation (#20818)
When compiler for preprocessing only, the preprocessing step that occurs
does not generate the integration header/footer information that is used
during the host compilation step. To generate the integration
information in this case, the driver inserts an additional compilation
step that creates the files to be consumed at the host step.
The compilation step to produce the integration information is using the
generated preprocessed file. For cases where there are build warnings
that are emitted during this step, use of -Werror will cause the
compilation to fail. These diagnostics are typically suppressed when not
performing preprocess only compilations, but due to the fact that the
build step against the preprocessed file does not know to suppress the
diagnostics from system headers, compilation behaviors are at a
disconnect.
To fix this, the behavior when creating a preprocessed file (i.e. when
we are using -E and stopping compilation), the driver will now compile
the original source file instead of the preprocessed file.1 parent f746a55 commit d99183b
File tree
4 files changed
+21
-9
lines changed- clang
- lib/Driver
- test/Driver
4 files changed
+21
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5061 | 5061 | | |
5062 | 5062 | | |
5063 | 5063 | | |
5064 | | - | |
5065 | | - | |
5066 | | - | |
| 5064 | + | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
5067 | 5068 | | |
| 5069 | + | |
5068 | 5070 | | |
5069 | | - | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
5070 | 5074 | | |
5071 | 5075 | | |
| 5076 | + | |
5072 | 5077 | | |
5073 | 5078 | | |
5074 | 5079 | | |
| |||
8001 | 8006 | | |
8002 | 8007 | | |
8003 | 8008 | | |
8004 | | - | |
8005 | | - | |
| 8009 | + | |
| 8010 | + | |
| 8011 | + | |
| 8012 | + | |
| 8013 | + | |
| 8014 | + | |
| 8015 | + | |
| 8016 | + | |
| 8017 | + | |
8006 | 8018 | | |
8007 | 8019 | | |
8008 | 8020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments