From 1476602f99cbb5613cc0d717c72559a4c506d4c0 Mon Sep 17 00:00:00 2001 From: Emily Hudson Date: Wed, 22 Jul 2020 15:24:12 +0100 Subject: [PATCH] builder: pass define flags to msvc (#5931) --- vlib/v/builder/msvc.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/builder/msvc.v b/vlib/v/builder/msvc.v index 917fd05652..d664ce1f66 100644 --- a/vlib/v/builder/msvc.v +++ b/vlib/v/builder/msvc.v @@ -266,12 +266,14 @@ pub fn (mut v Builder) cc_msvc() { real_libs << sflags.real_libs inc_paths := sflags.inc_paths lib_paths := sflags.lib_paths + defines := sflags.defines other_flags := sflags.other_flags // Include the base paths a << '-I "$r.ucrt_include_path"' a << '-I "$r.vs_include_path"' a << '-I "$r.um_include_path"' a << '-I "$r.shared_include_path"' + a << defines a << inc_paths a << other_flags // Libs are passed to cl.exe which passes them to the linker