fuzz: adapt harness for v0.9.0 rebase

v0.9.0 already carries the ifcopenshell::file rename this harness was
originally adapted for, but moved Logger into the ifcopenshell namespace
too (logger::root() -> ifcopenshell::logger::root()) and never had a
BUILD_ONLY_COMMON_SCHEMAS cmake option - schema selection there has always
been via the SCHEMA_VERSIONS list. Verified with -fsyntax-only against the
system-installed v0.9.0 headers.
This commit is contained in:
Bruno Postle
2026-08-19 22:21:58 +01:00
parent d3cef0b1e6
commit e49c47fbd2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ bool is_regular_file(const char* path) {
extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
for (int i = 1; i < *argc; ++i) {
if (is_regular_file((*argv)[i])) {
logger::root().set_output(&std::cerr, &std::cerr);
ifcopenshell::logger::root().set_output(&std::cerr, &std::cerr);
break;
}
}