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

pref: temp hack to make -os cross work when building V

This commit is contained in:
Alexander Medvednikov 2022-08-21 05:12:58 +03:00
parent f97a4f1904
commit 12265a15ed

View File

@ -161,6 +161,10 @@ pub fn (prefs &Preferences) should_compile_c(file string) bool {
if prefs.backend != .native && file.ends_with('_native.v') {
return false
}
if prefs.building_v && prefs.output_cross_c && file.ends_with('_windows.v') {
// TODO temp hack to make msvc_windows.v work with -os cross
return true
}
if prefs.os == .windows && (file.ends_with('_nix.c.v') || file.ends_with('_nix.v')) {
return false
}