Commit ae8e26c
Define SEASTAR_MODULE only for module interface file
The SEASTAR_MODULE macro should only be defined when compiling the module
interface file (seastar.cppm), not for the implementation .cc files.
When .cc files are compiled with SEASTAR_MODULE defined, headers expand
SEASTAR_MODULE_EXPORT_BEGIN to "export {", which is invalid outside a
module purview, causing compilation errors like:
"export declaration can only be used within a module purview"
Now SEASTAR_MODULE is set only for seastar.cppm using set_source_files_properties,
while implementation files compile without it, making export macros expand to
nothing in regular translation units.
Co-authored-by: avikivity <[email protected]>1 parent ff6a32f commit ae8e26c
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
0 commit comments