Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 1 | // Copyright 2015 Google Inc. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 15 | package config |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 16 | |
| 17 | import ( |
| 18 | "strings" |
| 19 | |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 20 | "android/soong/android" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 21 | ) |
| 22 | |
| 23 | var ( |
| 24 | windowsCflags = []string{ |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 25 | "-DUSE_MINGW", |
| 26 | "-DWIN32_LEAN_AND_MEAN", |
| 27 | "-Wno-unused-parameter", |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 28 | |
| 29 | // Workaround differences in inttypes.h between host and target. |
| 30 | //See bug 12708004. |
| 31 | "-D__STDC_FORMAT_MACROS", |
| 32 | "-D__STDC_CONSTANT_MACROS", |
| 33 | |
| 34 | // Use C99-compliant printf functions (%zd). |
| 35 | "-D__USE_MINGW_ANSI_STDIO=1", |
Dan Willemsen | 01fdd3d | 2016-03-30 00:01:12 -0700 | [diff] [blame] | 36 | // Admit to using >= Vista. Both are needed because of <_mingw.h>. |
| 37 | "-D_WIN32_WINNT=0x0600", |
| 38 | "-DWINVER=0x0600", |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 39 | // Get 64-bit off_t and related functions. |
| 40 | "-D_FILE_OFFSET_BITS=64", |
| 41 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 42 | "--sysroot ${WindowsGccRoot}/${WindowsGccTriple}", |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 43 | } |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 44 | windowsClangCflags = append(ClangFilterUnknownCflags(windowsCflags), []string{}...) |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 45 | |
| 46 | windowsIncludeFlags = []string{ |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 47 | "-isystem ${WindowsGccRoot}/${WindowsGccTriple}/include", |
| 48 | "-isystem ${WindowsGccRoot}/lib/gcc/${WindowsGccTriple}/4.8.3/include", |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 49 | } |
| 50 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 51 | windowsClangCppflags = []string{ |
| 52 | "-isystem ${WindowsGccRoot}/${WindowsGccTriple}/include/c++/4.8.3", |
| 53 | "-isystem ${WindowsGccRoot}/${WindowsGccTriple}/include/c++/4.8.3/backward", |
| 54 | } |
| 55 | |
| 56 | windowsX86ClangCppflags = []string{ |
| 57 | "-isystem ${WindowsGccRoot}/${WindowsGccTriple}/include/c++/4.8.3/${WindowsGccTriple}/32", |
| 58 | } |
| 59 | |
| 60 | windowsX8664ClangCppflags = []string{ |
| 61 | "-isystem ${WindowsGccRoot}/${WindowsGccTriple}/include/c++/4.8.3/${WindowsGccTriple}", |
| 62 | } |
| 63 | |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 64 | windowsLdflags = []string{ |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 65 | "--enable-stdcall-fixup", |
| 66 | } |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 67 | windowsClangLdflags = append(ClangFilterUnknownCflags(windowsLdflags), []string{}...) |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 68 | |
| 69 | windowsX86Cflags = []string{ |
| 70 | "-m32", |
| 71 | } |
| 72 | |
| 73 | windowsX8664Cflags = []string{ |
| 74 | "-m64", |
| 75 | } |
| 76 | |
| 77 | windowsX86Ldflags = []string{ |
| 78 | "-m32", |
Dan Willemsen | 7752bca | 2017-03-14 13:36:23 -0700 | [diff] [blame] | 79 | "-Wl,--large-address-aware", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 80 | "-L${WindowsGccRoot}/${WindowsGccTriple}/lib32", |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 81 | } |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 82 | windowsX86ClangLdflags = append(ClangFilterUnknownCflags(windowsX86Ldflags), []string{ |
| 83 | "-B${WindowsGccRoot}/lib/gcc/${WindowsGccTriple}/4.8.3/32", |
| 84 | "-L${WindowsGccRoot}/lib/gcc/${WindowsGccTriple}/4.8.3/32", |
| 85 | "-B${WindowsGccRoot}/${WindowsGccTriple}/lib32", |
| 86 | }...) |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 87 | |
| 88 | windowsX8664Ldflags = []string{ |
| 89 | "-m64", |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 90 | "-L${WindowsGccRoot}/${WindowsGccTriple}/lib64", |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 91 | } |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 92 | windowsX8664ClangLdflags = append(ClangFilterUnknownCflags(windowsX8664Ldflags), []string{ |
| 93 | "-B${WindowsGccRoot}/lib/gcc/${WindowsGccTriple}/4.8.3", |
| 94 | "-L${WindowsGccRoot}/lib/gcc/${WindowsGccTriple}/4.8.3", |
| 95 | "-B${WindowsGccRoot}/${WindowsGccTriple}/lib64", |
| 96 | }...) |
Dan Willemsen | 2b1f094 | 2016-07-20 12:47:47 -0700 | [diff] [blame] | 97 | |
| 98 | windowsAvailableLibraries = addPrefix([]string{ |
| 99 | "gdi32", |
| 100 | "imagehlp", |
Dan Willemsen | b18cf7a | 2017-09-09 01:42:00 -0700 | [diff] [blame] | 101 | "iphlpapi", |
| 102 | "netapi32", |
Dan Willemsen | 2b1f094 | 2016-07-20 12:47:47 -0700 | [diff] [blame] | 103 | "ole32", |
Dan Willemsen | b18cf7a | 2017-09-09 01:42:00 -0700 | [diff] [blame] | 104 | "powrprof", |
Dan Willemsen | 2b1f094 | 2016-07-20 12:47:47 -0700 | [diff] [blame] | 105 | "psapi", |
Kenny Root | b912349 | 2016-09-20 14:49:33 -0700 | [diff] [blame] | 106 | "pthread", |
Dan Willemsen | 2b1f094 | 2016-07-20 12:47:47 -0700 | [diff] [blame] | 107 | "userenv", |
| 108 | "uuid", |
Colin Cross | 124fd9a | 2016-11-21 17:31:08 -0800 | [diff] [blame] | 109 | "version", |
Dan Willemsen | 2b1f094 | 2016-07-20 12:47:47 -0700 | [diff] [blame] | 110 | "ws2_32", |
| 111 | }, "-l") |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 112 | ) |
| 113 | |
Dan Willemsen | 34fc3b1 | 2015-12-07 12:30:44 -0800 | [diff] [blame] | 114 | const ( |
| 115 | windowsGccVersion = "4.8" |
| 116 | ) |
| 117 | |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 118 | func init() { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 119 | pctx.StaticVariable("WindowsGccVersion", windowsGccVersion) |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 120 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 121 | pctx.SourcePathVariable("WindowsGccRoot", |
| 122 | "prebuilts/gcc/${HostPrebuiltTag}/host/x86_64-w64-mingw32-${WindowsGccVersion}") |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 123 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 124 | pctx.StaticVariable("WindowsGccTriple", "x86_64-w64-mingw32") |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 125 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 126 | pctx.StaticVariable("WindowsCflags", strings.Join(windowsCflags, " ")) |
| 127 | pctx.StaticVariable("WindowsLdflags", strings.Join(windowsLdflags, " ")) |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 128 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 129 | pctx.StaticVariable("WindowsClangCflags", strings.Join(windowsClangCflags, " ")) |
| 130 | pctx.StaticVariable("WindowsClangLdflags", strings.Join(windowsClangLdflags, " ")) |
| 131 | pctx.StaticVariable("WindowsClangCppflags", strings.Join(windowsClangCppflags, " ")) |
| 132 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 133 | pctx.StaticVariable("WindowsX86Cflags", strings.Join(windowsX86Cflags, " ")) |
| 134 | pctx.StaticVariable("WindowsX8664Cflags", strings.Join(windowsX8664Cflags, " ")) |
| 135 | pctx.StaticVariable("WindowsX86Ldflags", strings.Join(windowsX86Ldflags, " ")) |
| 136 | pctx.StaticVariable("WindowsX8664Ldflags", strings.Join(windowsX8664Ldflags, " ")) |
Dan Willemsen | d352edf | 2016-05-18 16:06:10 -0700 | [diff] [blame] | 137 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 138 | pctx.StaticVariable("WindowsX86ClangCflags", |
| 139 | strings.Join(ClangFilterUnknownCflags(windowsX86Cflags), " ")) |
| 140 | pctx.StaticVariable("WindowsX8664ClangCflags", |
| 141 | strings.Join(ClangFilterUnknownCflags(windowsX8664Cflags), " ")) |
| 142 | pctx.StaticVariable("WindowsX86ClangLdflags", strings.Join(windowsX86ClangLdflags, " ")) |
| 143 | pctx.StaticVariable("WindowsX8664ClangLdflags", strings.Join(windowsX8664ClangLdflags, " ")) |
| 144 | pctx.StaticVariable("WindowsX86ClangCppflags", strings.Join(windowsX86ClangCppflags, " ")) |
| 145 | pctx.StaticVariable("WindowsX8664ClangCppflags", strings.Join(windowsX8664ClangCppflags, " ")) |
| 146 | |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 147 | pctx.StaticVariable("WindowsIncludeFlags", strings.Join(windowsIncludeFlags, " ")) |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | type toolchainWindows struct { |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 151 | cFlags, ldFlags string |
| 152 | } |
| 153 | |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 154 | type toolchainWindowsX86 struct { |
| 155 | toolchain32Bit |
| 156 | toolchainWindows |
| 157 | } |
| 158 | |
| 159 | type toolchainWindowsX8664 struct { |
| 160 | toolchain64Bit |
| 161 | toolchainWindows |
| 162 | } |
| 163 | |
| 164 | func (t *toolchainWindowsX86) Name() string { |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 165 | return "x86" |
| 166 | } |
| 167 | |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 168 | func (t *toolchainWindowsX8664) Name() string { |
| 169 | return "x86_64" |
| 170 | } |
| 171 | |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 172 | func (t *toolchainWindows) GccRoot() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 173 | return "${config.WindowsGccRoot}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 174 | } |
| 175 | |
| 176 | func (t *toolchainWindows) GccTriple() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 177 | return "${config.WindowsGccTriple}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | func (t *toolchainWindows) GccVersion() string { |
Dan Willemsen | 34fc3b1 | 2015-12-07 12:30:44 -0800 | [diff] [blame] | 181 | return windowsGccVersion |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 182 | } |
| 183 | |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 184 | func (t *toolchainWindowsX86) Cflags() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 185 | return "${config.WindowsCflags} ${config.WindowsX86Cflags}" |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 186 | } |
| 187 | |
| 188 | func (t *toolchainWindowsX8664) Cflags() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 189 | return "${config.WindowsCflags} ${config.WindowsX8664Cflags}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | func (t *toolchainWindows) Cppflags() string { |
| 193 | return "" |
| 194 | } |
| 195 | |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 196 | func (t *toolchainWindowsX86) Ldflags() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 197 | return "${config.WindowsLdflags} ${config.WindowsX86Ldflags}" |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 198 | } |
| 199 | |
| 200 | func (t *toolchainWindowsX8664) Ldflags() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 201 | return "${config.WindowsLdflags} ${config.WindowsX8664Ldflags}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 202 | } |
| 203 | |
| 204 | func (t *toolchainWindows) IncludeFlags() string { |
Colin Cross | b98c8b0 | 2016-07-29 13:44:28 -0700 | [diff] [blame] | 205 | return "${config.WindowsIncludeFlags}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 206 | } |
| 207 | |
Dan Willemsen | 4f1c3d4 | 2017-09-09 01:15:26 -0700 | [diff] [blame] | 208 | func (t *toolchainWindowsX86) WindresFlags() string { |
| 209 | return "-F pe-i386" |
| 210 | } |
| 211 | |
| 212 | func (t *toolchainWindowsX8664) WindresFlags() string { |
| 213 | return "-F pe-x86-64" |
| 214 | } |
| 215 | |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 216 | func (t *toolchainWindows) ClangSupported() bool { |
| 217 | return false |
| 218 | } |
| 219 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 220 | func (t *toolchainWindowsX86) ClangTriple() string { |
| 221 | return "i686-windows-gnu" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 222 | } |
| 223 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 224 | func (t *toolchainWindowsX8664) ClangTriple() string { |
| 225 | return "x86_64-pc-windows-gnu" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 226 | } |
| 227 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 228 | func (t *toolchainWindowsX86) ClangCflags() string { |
| 229 | return "${config.WindowsClangCflags} ${config.WindowsX86ClangCflags}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 230 | } |
| 231 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 232 | func (t *toolchainWindowsX8664) ClangCflags() string { |
| 233 | return "${config.WindowsClangCflags} ${config.WindowsX8664ClangCflags}" |
| 234 | } |
| 235 | |
| 236 | func (t *toolchainWindowsX86) ClangCppflags() string { |
| 237 | return "${config.WindowsClangCppflags} ${config.WindowsX86ClangCppflags}" |
| 238 | } |
| 239 | |
| 240 | func (t *toolchainWindowsX8664) ClangCppflags() string { |
| 241 | return "${config.WindowsClangCppflags} ${config.WindowsX8664ClangCppflags}" |
| 242 | } |
| 243 | |
| 244 | func (t *toolchainWindowsX86) ClangLdflags() string { |
| 245 | return "${config.WindowsClangLdflags} ${config.WindowsX86ClangLdflags}" |
| 246 | } |
| 247 | |
Chih-Hung Hsieh | 02b4da5 | 2018-04-03 11:33:34 -0700 | [diff] [blame^] | 248 | func (t *toolchainWindowsX86) ClangLldflags() string { |
| 249 | // TODO: define and use Windows*ClangLldflags |
| 250 | return "${config.WindowsClangLdflags} ${config.WindowsX86ClangLdflags}" |
| 251 | } |
| 252 | |
Dan Willemsen | 01f388c | 2017-11-30 13:31:26 -0800 | [diff] [blame] | 253 | func (t *toolchainWindowsX8664) ClangLdflags() string { |
| 254 | return "${config.WindowsClangLdflags} ${config.WindowsX8664ClangLdflags}" |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 255 | } |
| 256 | |
Chih-Hung Hsieh | 02b4da5 | 2018-04-03 11:33:34 -0700 | [diff] [blame^] | 257 | func (t *toolchainWindowsX8664) ClangLldflags() string { |
| 258 | // TODO: define and use Windows*ClangLldflags |
| 259 | return "${config.WindowsClangLdflags} ${config.WindowsX8664ClangLdflags}" |
| 260 | } |
| 261 | |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 262 | func (t *toolchainWindows) ShlibSuffix() string { |
| 263 | return ".dll" |
| 264 | } |
| 265 | |
| 266 | func (t *toolchainWindows) ExecutableSuffix() string { |
| 267 | return ".exe" |
| 268 | } |
| 269 | |
Dan Willemsen | 2b1f094 | 2016-07-20 12:47:47 -0700 | [diff] [blame] | 270 | func (t *toolchainWindows) AvailableLibraries() []string { |
| 271 | return windowsAvailableLibraries |
| 272 | } |
| 273 | |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 274 | func (t *toolchainWindows) Bionic() bool { |
| 275 | return false |
| 276 | } |
| 277 | |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 278 | var toolchainWindowsX86Singleton Toolchain = &toolchainWindowsX86{} |
| 279 | var toolchainWindowsX8664Singleton Toolchain = &toolchainWindowsX8664{} |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 280 | |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 281 | func windowsX86ToolchainFactory(arch android.Arch) Toolchain { |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 282 | return toolchainWindowsX86Singleton |
| 283 | } |
| 284 | |
Colin Cross | 635c3b0 | 2016-05-18 15:37:25 -0700 | [diff] [blame] | 285 | func windowsX8664ToolchainFactory(arch android.Arch) Toolchain { |
Dan Willemsen | 07cd051 | 2016-02-03 23:16:33 -0800 | [diff] [blame] | 286 | return toolchainWindowsX8664Singleton |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | func init() { |
Colin Cross | a1ad8d1 | 2016-06-01 17:09:44 -0700 | [diff] [blame] | 290 | registerToolchainFactory(android.Windows, android.X86, windowsX86ToolchainFactory) |
| 291 | registerToolchainFactory(android.Windows, android.X86_64, windowsX8664ToolchainFactory) |
Dan Willemsen | 490fd49 | 2015-11-24 17:53:15 -0800 | [diff] [blame] | 292 | } |