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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user