Skip to content

Commit 03431f4

Browse files
committed
fix windows bigobj error. see #684 for detail.
1 parent 4b4cd0d commit 03431f4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
[中文交流群](https://github.com/sewenew/redis-plus-plus/blob/master/Chinese.md)
66

7-
I create a Redis module, named [redis-llm](https://github.com/sewenew/redis-llm), which integrates LLMs (Large Language Models) with Redis. You can [learn redis-plus-plus by asking questions with it](https://github.com/sewenew/redis-llm/tree/main/examples/search-application).
8-
97
- [Overview](#overview)
108
- [Features](#features)
119
- [Installation](#installation)
@@ -202,7 +200,7 @@ Since *redis-plus-plus* depends on *hiredis*, we need to specify the installatio
202200
}
203201
```
204202

205-
Then you can build it the instructions (links) mentioned above. If you're building with Visual Studio 2017 in debug mode, you might get [/bigobj error](https://docs.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file?view=vs-2017) when building the test. In this case, you can disable building test by setting `-DREDIS_PLUS_PLUS_BUILD_TEST=OFF` or build it in Release mode.
203+
Then you can build it with the instructions (links) mentioned above.
206204

207205
**NOTE**:
208206

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ if(REDIS_PLUS_PLUS_BUILD_ASYNC_TEST)
5555
target_compile_definitions(${PROJECT_NAME} PRIVATE REDIS_PLUS_PLUS_RUN_ASYNC_TEST)
5656
target_link_libraries(${PROJECT_NAME} ${REDIS_PLUS_PLUS_ASYNC_LIB})
5757
endif()
58+
59+
if(MSVC)
60+
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
61+
endif()

0 commit comments

Comments
 (0)