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

pref: fix handling of _d_custom.v files, use it in vlib/sokol/f/f_d_use_freetype.v

This commit is contained in:
Delyan Angelov
2021-01-23 11:21:56 +02:00
parent 8b61891348
commit a3908414e4
3 changed files with 24 additions and 25 deletions

View File

@@ -20,7 +20,10 @@ pub fn (prefs &Preferences) should_compile_filtered_files(dir string, files_ []s
if prefs.backend == .js && !prefs.should_compile_js(file) {
continue
}
if prefs.compile_defines_all.len > 0 && file.contains('_d_') {
if file.contains('_d_') {
if prefs.compile_defines_all.len == 0 {
continue
}
mut allowed := false
for cdefine in prefs.compile_defines {
file_postfix := '_d_${cdefine}.v'