1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builder: pass define flags to msvc (#5931)

This commit is contained in:
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

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