builder: pass define flags to msvc (#5931)

pull/5924/head
Emily Hudson 2020-07-22 15:24:12 +01:00 committed by GitHub
parent 6d09842852
commit 1476602f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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