mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.pref: show the VCROSS_COMPILER_NAME notice only when the output is not a .c file
This commit is contained in:
parent
4a71b27c52
commit
5b7e538119
@ -259,7 +259,7 @@ pub fn (p &Preferences) vcross_compiler_name() string {
|
|||||||
if p.os == .linux {
|
if p.os == .linux {
|
||||||
return 'clang'
|
return 'clang'
|
||||||
}
|
}
|
||||||
if p.backend == .c {
|
if p.backend == .c && !p.out_name.ends_with('.c') {
|
||||||
eprintln('Note: V can only cross compile to windows and linux for now by default.')
|
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('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 .')
|
eprintln('Set `VCROSS_COMPILER_NAME` to the name of your cross compiler, for your target OS: $p.os .')
|
||||||
|
Loading…
Reference in New Issue
Block a user