From 9c078eb977ba73f65acc54693550dd397ee1c22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Szab=C3=B3?= Date: Mon, 30 Mar 2026 14:47:33 +0200 Subject: [PATCH] Add OSS configuration for sbcc extension Add a minimal config so that extension autodiscovery doesn't pick up sbcc-compiler files (which would cause an error due to duplicate `main` definitions). sbcc-compiler support for OSS to follow separately once I have time to look into it. --- hphp/runtime/ext/sbcc/config.cmake | 9 +++++++++ hphp/util/hphp-config.h.in | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 hphp/runtime/ext/sbcc/config.cmake diff --git a/hphp/runtime/ext/sbcc/config.cmake b/hphp/runtime/ext/sbcc/config.cmake new file mode 100644 index 00000000000000..1bf0c3a4971c1d --- /dev/null +++ b/hphp/runtime/ext/sbcc/config.cmake @@ -0,0 +1,9 @@ +HHVM_DEFINE_EXTENSION("sbcc" + SOURCES + ext_sbcc.cpp + format/sbcc-cache.cpp + format/sbcc-reader.cpp + format/sbcc-writer.cpp + SYSTEMLIB + ext_sbcc.php +) diff --git a/hphp/util/hphp-config.h.in b/hphp/util/hphp-config.h.in index 393b3b586a052b..be8eea355c3cf2 100644 --- a/hphp/util/hphp-config.h.in +++ b/hphp/util/hphp-config.h.in @@ -88,7 +88,7 @@ ${HHVM_COMPILES_DEFINE_STRING} #endif #ifdef USE_CMAKE -# if ${HHVM_EXTENSION_COUNT} != 100 +# if ${HHVM_EXTENSION_COUNT} != 102 # error You need to update the config file for the new builtin extension, and add the define to the FB section # endif ${HHVM_EXTENSIONS_ENABLED_DEFINE_STRING}