Skip to content

Commit 9625acd

Browse files
committed
disable interprocedural optimization
1 parent 03b0b21 commit 9625acd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci-pr-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
shell: bash
102102
run: |
103103
if [ "$RUNNER_OS" == "Windows" ]; then
104-
cmake --build ./build-1 --verbose --config Release
104+
cmake --build ./build-1 --parallel --verbose --config Release
105105
cmake --install ./build-1
106106
fi
107107

lib/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ if (BUILD_STATIC_LIB)
108108
${CMAKE_SOURCE_DIR}/include)
109109
if (MSVC)
110110
if (NOT CMAKE_CL_64)
111-
# x86 build - apply memory increase for CL.exe
112-
target_compile_options(PULSAR_OBJECT_LIB PRIVATE "/Zm1000")
111+
# x86 build - disable interprocedural optimization to avoid memory insufficiency issues:
112+
# error MSB6006: "CL.exe" exited with code -1073741819.
113+
set_property(TARGET PULSAR_OBJECT_LIB PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
113114
endif()
114115
set_property(TARGET pulsarStatic PROPERTY OUTPUT_NAME "${LIB_NAME}-static")
115116
target_include_directories(pulsarStatic PRIVATE ${dlfcn-win32_INCLUDE_DIRS})

0 commit comments

Comments
 (0)