[rego-cpp] Add /bigobj. (#51880)

This commit is contained in:
Billy O'Neal 2026-05-21 00:32:51 -07:00 committed by GitHub
parent f7f94113c3
commit 74f5fda46b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c916c90..6e77a58 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -66,7 +66,7 @@ target_link_libraries(rego
)
if(MSVC)
- target_compile_options(rego PUBLIC "/Zc:__cplusplus")
+ target_compile_options(rego PUBLIC "/Zc:__cplusplus" "/bigobj")
target_compile_definitions(rego PUBLIC "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" "DATE_BUILD_LIB")
endif()

View File

@ -4,6 +4,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 a9e7b6202fdc7b7168433227c7bc67492d52bdf10c5d9b2c0954aa66a9eb5a16a9b4de7eb7385a335c6685111393aad6840c171ab12b3e6b2fd493b5bffea21c
HEAD_REF main
PATCHES
add-bigobj.diff # src\rego_to_bundle.cc : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
)
# NOTE: The CI overlay port (see .github/workflows/pr_gate.yml,

View File

@ -1,6 +1,7 @@
{
"name": "rego-cpp",
"version": "1.4.1",
"port-version": 1,
"description": "A C++ interpreter for the OPA Rego policy language",
"homepage": "https://github.com/microsoft/rego-cpp",
"license": "MIT",

View File

@ -8730,7 +8730,7 @@
},
"rego-cpp": {
"baseline": "1.4.1",
"port-version": 0
"port-version": 1
},
"rendergraph": {
"baseline": "2.1.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4eba4aa2840ed4827eec9fa1da81228400300bcb",
"version": "1.4.1",
"port-version": 1
},
{
"git-tree": "71925bf69323a0a51e027f46a4049ac8faca103a",
"version": "1.4.1",