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

compiler: add android to supported platforms

This commit is contained in:
hazohelet 2019-09-16 23:16:24 +09:00 committed by Alexander Medvednikov
parent 155fecadb7
commit 3325775944
2 changed files with 2 additions and 1 deletions

View File

@ -274,6 +274,7 @@ fn os_name_to_ifdef(name string) string {
case 'netbsd': return '__NetBSD__'
case 'dragonfly': return '__DragonFly__'
case 'msvc': return '_MSC_VER'
case 'android': return '__BIONIC__'
case 'js': return '_VJS'
}
cerror('bad os ifdef name "$name"')

View File

@ -28,7 +28,7 @@ enum BuildMode {
const (
SupportedPlatforms = ['windows', 'mac', 'linux', 'freebsd', 'openbsd',
'netbsd', 'dragonfly', 'msvc', 'js']
'netbsd', 'dragonfly', 'msvc', 'android', 'js']
ModPath = os.home_dir() + '/.vmodules/'
)