From 3325775944e367bdb11201f3089c9715470f55ce Mon Sep 17 00:00:00 2001 From: hazohelet <48541090+hazohelet@users.noreply.github.com> Date: Mon, 16 Sep 2019 23:16:24 +0900 Subject: [PATCH] compiler: add android to supported platforms --- compiler/cgen.v | 1 + compiler/main.v | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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/' )