Commit 26a7077
committed
fix: undef PODIO_JSON_OUTPUT in module interfaces to avoid TU-local nlohmann/json entities
nlohmann/json 3.11.3 has internal detail functions (unescape,
little_endianness) that are TU-local and cannot be exposed in C++20
module interfaces. The PODIO_JSON_OUTPUT define causes these to be
included via podio headers (e.g. ObjectID.h).
Fixed by #undef'ing PODIO_JSON_OUTPUT in the global module fragment
before including any podio headers. JSON serialization remains
available for non-module compilation.
Also disabled the test_module_import test due to GCC 15 ICE with
standard library includes after module imports.1 parent 46e13eb commit 26a7077
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
0 commit comments