diff --git a/compiler/cgen.v b/compiler/cgen.v index d57423230b..2146c5ff6d 100644 --- a/compiler/cgen.v +++ b/compiler/cgen.v @@ -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"') diff --git a/compiler/main.v b/compiler/main.v index d305b435b0..f2785a56d7 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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/' )