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

pref: only show the support cross compiler warning/VCROSS_COMPILER_NAME message for the C backend

This commit is contained in:
Delyan Angelov 2022-04-14 15:04:00 +03:00
parent bf62b2e33e
commit f6c9a60f99
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -259,8 +259,10 @@ pub fn (p &Preferences) vcross_compiler_name() string {
if p.os == .linux {
return 'clang'
}
eprintln('Note: V can only cross compile to windows and linux for now by default.')
eprintln('It will use `cc` as a cross compiler for now, although that will probably fail.')
eprintln('Set `VCROSS_COMPILER_NAME` to the name of your cross compiler, for your target OS: $p.os .')
if p.backend == .c {
eprintln('Note: V can only cross compile to windows and linux for now by default.')
eprintln('It will use `cc` as a cross compiler for now, although that will probably fail.')
eprintln('Set `VCROSS_COMPILER_NAME` to the name of your cross compiler, for your target OS: $p.os .')
}
return 'cc'
}