Skip to content

Commit 809235e

Browse files
authored
build: fix "vcruntime140.dll is missing" error on Windows (#2170)
Farcop reported that Fluent Bit fails to run on a freshly installed Windows. In particular, it hangs with the following message: > The program can't start because VCRuntime140.dll is missing from > your computer. Try reinstalling the program to fix this problem. This patch fixes it by tweaking the compiler flags. Signed-off-by: Fujimoto Seiji <[email protected]>
1 parent c20f76a commit 809235e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ endif()
1818
# Update CFLAGS
1919
if (MSVC)
2020
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
21+
add_compile_options(/MT)
2122
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
2223
else()
2324
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")

0 commit comments

Comments
 (0)