Skip to content

Commit

Permalink
pref: only show the support cross compiler warning/VCROSS_COMPILER_NA…
Browse files Browse the repository at this point in the history
…ME message for the C backend
  • Loading branch information
spytheman committed Apr 14, 2022
1 parent bf62b2e commit f6c9a60
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vlib/v/pref/default.v
Expand Up @@ -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'
}

0 comments on commit f6c9a60

Please sign in to comment.