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

os: restore the env TERMUX_VERSION based final resort for runtime auto detection of Termux

This commit is contained in:
Delyan Angelov 2022-07-08 11:16:32 +03:00
parent bcaa3ac915
commit 02d675ab67
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -355,6 +355,9 @@ pub fn user_os() string {
$if vinix { $if vinix {
return 'vinix' return 'vinix'
} }
if getenv('TERMUX_VERSION') != '' {
return 'termux'
}
return 'unknown' return 'unknown'
} }