Replies: 2 comments 5 replies
-
Can you share the output that is tempermental? Maybe someone can spot something unusual about it. Are you using GCC, or some other compiler? One quick thought is if there is some unexpected buffering happening. |
Beta Was this translation helpful? Give feedback.
-
This is GCC. I think this has to do with my setup. This is a cmake-unity build and cmake-generated unity files are placed outside of the source tree, and that's what gets compiled. Because of it I don't think I can store discovered entries on the file or even folder level as keeping them with the unity resources or their parents in a separate sub-tree won't help the indexer when it goes through the actual sources, so I'm keeping discovered entries at the project level. I realize this is technically incorrect as this is a rather extensive codebase with many projects that have different switches/include paths but this is the best I can do at the moment. My expectation was that once the build completes the set of discovered include directories and -D macros kept at the project level is a union of all those detected by the build output parser, even when individual compiler invocations may have different -I and -D values. What seem to be happening is that earlier discovered values are discarded and replaced by what's found by the last command that ran, or something to that effect. Is that a bug or by design? Another thought, I'm running a parallel build, so it may be a concurrency issue. I will try a -j1 build to rule it out. |
Beta Was this translation helpful? Give feedback.
-
Cmake-generated C++ makefile project on Linux, using vanilla CDT/2022-12 C++ Eclipse package. I'm facing an issue where some -I directories (as absolute paths) are missed by the build output parser. Most are fine however. I checked on regex101 and the default expression matches the troubled compiler invocation lines. I've seen an occasional success w/no change in the compile command. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions