Failed linking with v -cc gcc -parallel-cc examples/sokol/drawing.v
, V ignores it, but it should fail too
#23209
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Parallel C Compilation
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
V should fail itself, when it detects that either of the parallel C compilation commands failed, and
when it detects that the final serial linking command failed.
Instead, it finished with exit code 0.
Any program that uses
sokol
currently leads to that, which is a separate problem.I think, the root cause, is that sokol and other libraries like it, require that only a single .c file have their implementation symbols (see
vlib/sokol/c/declaration.c.v:59:#define SOKOL_IMPL
), but the current split makes it so that this define is present in several .c files, not just one => the headers are expanded into their implementation version, not their declarative one).Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Huly®: V_0.6-21645
The text was updated successfully, but these errors were encountered: