mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
make encountering uncompilable "standalone" functions to be a hard error
This commit is contained in:
parent
7a66b4fea4
commit
c6cd5d7a3b
1 changed files with 6 additions and 1 deletions
|
@ -113,8 +113,13 @@ void CPPCompile::Compile(bool report_uncompilable)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( reason && report_uncompilable )
|
if ( reason && standalone )
|
||||||
|
reporter->Error("%s cannot be compiled to standalone C++ due to %s", f->Name(),
|
||||||
|
reason);
|
||||||
|
|
||||||
|
else if ( reason && report_uncompilable )
|
||||||
fprintf(stderr, "%s cannot be compiled to C++ due to %s\n", f->Name(), reason);
|
fprintf(stderr, "%s cannot be compiled to C++ due to %s\n", f->Name(), reason);
|
||||||
|
|
||||||
not_fully_compilable.insert(f->Name());
|
not_fully_compilable.insert(f->Name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue