ci: fix failed windows-msvc task (sokol examples)

pull/12859/head
Delyan Angelov 2021-12-15 20:16:55 +02:00
parent d90ef1f29f
commit 1261468d8e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 0 deletions

View File

@ -481,6 +481,8 @@ pub fn msvc_string_flags(cflags []cflag.CFlag) MsvcStringFlags {
real_libs << lib_lib real_libs << lib_lib
} else if flag.name == '-I' { } else if flag.name == '-I' {
inc_paths << flag.format() inc_paths << flag.format()
} else if flag.name == '-D' {
defines << '/D$flag.value'
} else if flag.name == '-L' { } else if flag.name == '-L' {
lib_paths << flag.value lib_paths << flag.value
lib_paths << flag.value + os.path_separator + 'msvc' lib_paths << flag.value + os.path_separator + 'msvc'