1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
Alexander Medvednikov
2019-11-14 07:08:11 +03:00
parent 1d460c4d49
commit 8d4ef822b6
3 changed files with 47 additions and 3 deletions

View File

@ -957,9 +957,9 @@ pub fn new_v(args[]string) &V {
out_name_c = out_name.all_after(os.path_separator) + '_shared_lib.c'
}
$if !linux {
if pref.is_bare {
verror('-bare only works on Linux for now')
}
if pref.is_bare && !out_name.ends_with('.c') {
verror('-bare only works on Linux for now')
}
}
return &V{
os: _os