blob: fa2f91d4ab3b6048cf052f0e1cbf769214e1c2e0 [file] [log] [blame]
mtklein7fbfbbe2016-07-21 12:25:45 -07001# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6declare_args() {
Kevin Lubick2677a9a2017-03-28 15:45:41 -04007 extra_asmflags = []
Mike Klein121563e2016-10-04 17:09:13 -04008 extra_cflags = []
9 extra_cflags_c = []
10 extra_cflags_cc = []
11 extra_ldflags = []
mtkleincab0bb72016-08-26 13:43:19 -070012
Herb Derby76073c12016-12-08 19:00:40 -050013 malloc = ""
mtklein7fbfbbe2016-07-21 12:25:45 -070014}
Mike Klein82364ba2016-10-24 16:49:15 -040015
Mike Klein7d302882016-11-03 14:06:31 -040016if (is_ios) {
Matthew Leibowitz3150ec62017-03-14 16:22:32 -040017 if (is_tvos) {
18 sdk = "appletvos"
19 if (target_cpu == "x86" || target_cpu == "x64") {
20 sdk = "appletvsimulator"
21 }
22 } else {
23 sdk = "iphoneos"
24 if (target_cpu == "x86" || target_cpu == "x64") {
25 sdk = "iphonesimulator"
26 }
Mike Klein7a5e0f32017-03-13 09:25:33 -070027 }
28 ios_sysroot = exec_script("find_ios_sysroot.py", [ sdk ], "trim string")
Mike Klein7d302882016-11-03 14:06:31 -040029}
30
mtkleinb9be9792016-09-16 14:44:18 -070031config("default") {
32 asmflags = []
33 cflags = []
34 cflags_c = []
35 cflags_cc = []
36 defines = []
37 ldflags = []
Herb Derby76073c12016-12-08 19:00:40 -050038 libs = []
mtkleinb9be9792016-09-16 14:44:18 -070039
40 if (is_win) {
41 cflags += [
42 "/FS", # Preserve previous PDB behavior.
herbb6318bf2016-09-16 13:29:57 -070043 "/bigobj", # Some of our files are bigger than the regular limits.
Mike Kleinc7165c22016-10-12 23:58:06 -040044 "/WX", # Treat warnings as errors.
Ben Wagnere6b274e2017-01-03 17:09:59 -050045 "/utf-8", # Set Source and Executable character sets to UTF-8.
herbb6318bf2016-09-16 13:29:57 -070046 ]
Mike Kleina91ec582017-07-31 16:35:17 -040047 if (is_clang) {
48 cflags += [ "-fms-compatibility-version=19" ] # 2015
49 }
mtkleinb9be9792016-09-16 14:44:18 -070050 defines += [
Mike Kleinc7165c22016-10-12 23:58:06 -040051 "_CRT_SECURE_NO_WARNINGS", # Disables warnings about sscanf().
52 "_HAS_EXCEPTIONS=0", # Disables exceptions in MSVC STL.
mtkleinb9be9792016-09-16 14:44:18 -070053 "WIN32_LEAN_AND_MEAN",
54 "NOMINMAX",
herbb6318bf2016-09-16 13:29:57 -070055 ]
Mike Klein98adfa82017-07-31 15:46:47 -040056
Brian Osmand34c4a32017-12-06 13:26:38 -050057 if (msvc == 2015) {
Ravi Mistryf5ab2692017-12-06 21:51:23 +000058 _include_dirs = [
59 "$windk/VC/include",
Brian Osman6da1d322017-12-06 15:21:44 -050060
Ravi Mistryf5ab2692017-12-06 21:51:23 +000061 # For local builds.
62 "$windk/../Windows Kits/8.1/Include/shared",
63 "$windk/../Windows Kits/10/Include/10.0.10150.0/ucrt",
64 "$windk/../Windows Kits/8.1/Include/um",
65 "$windk/../Windows Kits/8.1/Include/winrt",
66
67 # For builds using win_toolchain asset (currently 2015).
68 "$windk/win_sdk/Include/10.0.14393.0/shared",
69 "$windk/win_sdk/Include/10.0.14393.0/ucrt",
70 "$windk/win_sdk/Include/10.0.14393.0/um",
71 "$windk/win_sdk/Include/10.0.14393.0/winrt",
72 ]
73 } else {
74 # 2017
75 _include_dirs = [
76 "$windk/VC/Tools/MSVC/$win_toolchain_version/include",
77
78 # For local builds.
79 "$windk/../../../Windows Kits/10/Include/10.0.14393.0/shared",
80 "$windk/../../../Windows Kits/10/Include/10.0.14393.0/ucrt",
81 "$windk/../../../Windows Kits/10/Include/10.0.14393.0/um",
82 "$windk/../../../Windows Kits/10/Include/10.0.14393.0/winrt",
83 ]
84 }
Mike Klein98adfa82017-07-31 15:46:47 -040085 if (is_clang) {
86 foreach(dir, _include_dirs) {
87 cflags += [
88 "-imsvc",
89 dir,
90 ]
91 }
92 } else {
93 include_dirs = _include_dirs
94 }
95
Brian Osmand34c4a32017-12-06 13:26:38 -050096 if (msvc == 2015) {
Ravi Mistryf5ab2692017-12-06 21:51:23 +000097 lib_dirs = [
98 # For local builds.
99 "$windk/../Windows Kits/10/Lib/10.0.10150.0/ucrt/$target_cpu",
100 "$windk/../Windows Kits/8.1/Lib/winv6.3/um/$target_cpu",
101
102 # For builds using win_toolchain asset (currently 2015).
103 "$windk/win_sdk/Lib/10.0.14393.0/ucrt/$target_cpu",
104 "$windk/win_sdk/Lib/10.0.14393.0/um/$target_cpu",
105 ]
106
Brian Osmand34c4a32017-12-06 13:26:38 -0500107 if (target_cpu == "x86") {
108 lib_dirs += [ "$windk/VC/lib" ]
109 } else {
110 lib_dirs += [ "$windk/VC/lib/amd64" ]
111 }
Ravi Mistryf5ab2692017-12-06 21:51:23 +0000112 } else {
113 # 2017
114 lib_dirs = [
115 "$windk/VC/Tools/MSVC/$win_toolchain_version/lib/$target_cpu",
116
117 # For local builds.
118 "$windk/../../../Windows Kits/10/Lib/10.0.14393.0/ucrt/$target_cpu",
119 "$windk/../../../Windows Kits/10/Lib/10.0.14393.0/um/$target_cpu",
120 ]
Mike Klein0bc5a762016-10-12 22:42:55 -0400121 }
mtkleinb9be9792016-09-16 14:44:18 -0700122 } else {
123 cflags += [
herbb6318bf2016-09-16 13:29:57 -0700124 "-fstrict-aliasing",
125 "-fPIC",
herbb6318bf2016-09-16 13:29:57 -0700126 "-Werror",
mtklein2b3c2a32016-09-08 08:39:34 -0700127 ]
Mike Klein28f5b772017-04-06 23:04:42 -0400128 cflags_cc += [ "-std=c++11" ]
Mike Kleineec23d12017-03-26 20:11:48 -0400129
130 # The main idea is to slim the exported API, but these flags also improve link time on Mac.
131 # These would make stack traces worse on Linux, so we don't just set them willy-nilly.
Mike Klein8cb66482017-03-28 14:16:22 -0400132 if (is_component_build || is_ios || is_mac) {
Mike Kleineec23d12017-03-26 20:11:48 -0400133 cflags += [ "-fvisibility=hidden" ]
134 cflags_cc += [ "-fvisibility-inlines-hidden" ]
135 }
mtkleinb9be9792016-09-16 14:44:18 -0700136 }
herbb6318bf2016-09-16 13:29:57 -0700137
mtkleinb9be9792016-09-16 14:44:18 -0700138 if (current_cpu == "arm") {
139 cflags += [
140 "-march=armv7-a",
141 "-mfpu=neon",
142 "-mthumb",
143 ]
Mike Klein5d8cf292016-10-12 19:36:09 -0400144 } else if (current_cpu == "x86" && !is_win) {
mtkleinb9be9792016-09-16 14:44:18 -0700145 asmflags += [ "-m32" ]
146 cflags += [
147 "-m32",
148 "-msse2",
149 "-mfpmath=sse",
150 ]
151 ldflags += [ "-m32" ]
152 }
herbb6318bf2016-09-16 13:29:57 -0700153
Herb Derby76073c12016-12-08 19:00:40 -0500154 if (malloc != "" && !is_win) {
155 cflags += [
156 "-fno-builtin-malloc",
157 "-fno-builtin-calloc",
158 "-fno-builtin-realloc",
159 "-fno-builtin-free",
160 ]
161 libs += [ malloc ]
162 }
163
mtkleinb9be9792016-09-16 14:44:18 -0700164 if (is_android) {
Derek Sollenberger19b2a562017-06-27 11:55:05 -0400165 asmflags += [ "--target=$ndk_target" ]
mtkleinb9be9792016-09-16 14:44:18 -0700166 cflags += [
Derek Sollenberger19b2a562017-06-27 11:55:05 -0400167 "--sysroot=$ndk/sysroot",
168 "-isystem$ndk/sysroot/usr/include/$ndk_target",
169 "-D__ANDROID_API__=$ndk_api",
mtkleinb9be9792016-09-16 14:44:18 -0700170 "--target=$ndk_target",
mtkleinb9be9792016-09-16 14:44:18 -0700171 ]
172 cflags_cc += [
173 "-isystem$ndk/sources/android/support/include",
Mike Kleinb7ce80b2016-12-14 13:17:53 -0500174 "-isystem$ndk/sources/cxx-stl/gnu-libstdc++/4.9/include",
175 "-isystem$ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/$ndk_stdlib/include",
mtkleinb9be9792016-09-16 14:44:18 -0700176 ]
177 ldflags += [
178 "--sysroot=$ndk/platforms/$ndk_platform",
179 "--target=$ndk_target",
180 "-B$ndk/toolchains/$ndk_gccdir-4.9/prebuilt/$ndk_host/$ndk_target/bin",
mtkleinb9be9792016-09-16 14:44:18 -0700181 ]
182 lib_dirs = [
Mike Kleinb7ce80b2016-12-14 13:17:53 -0500183 "$ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/$ndk_stdlib",
mtkleinb9be9792016-09-16 14:44:18 -0700184 "$ndk/toolchains/$ndk_gccdir-4.9/prebuilt/$ndk_host/lib/gcc/$ndk_target/4.9.x",
185 ]
herbb6318bf2016-09-16 13:29:57 -0700186
Mike Kleinb7ce80b2016-12-14 13:17:53 -0500187 libs += [ "gnustl_static" ]
mtklein2b3c2a32016-09-08 08:39:34 -0700188 }
mtklein7fbfbbe2016-07-21 12:25:45 -0700189
Mike Klein7d302882016-11-03 14:06:31 -0400190 if (is_ios) {
Mike Kleinb48fd3c2017-01-23 11:58:53 -0500191 _target = target_cpu
192 if (target_cpu == "arm") {
193 _target = "armv7"
Mike Klein7a5e0f32017-03-13 09:25:33 -0700194 } else if (target_cpu == "x86") {
195 _target = "i386"
196 } else if (target_cpu == "x64") {
197 _target = "x86_64"
Mike Kleinb48fd3c2017-01-23 11:58:53 -0500198 }
Mike Klein4fe2b152017-02-17 15:36:01 -0500199 asmflags += [
200 "-isysroot",
201 ios_sysroot,
202 "-arch",
203 _target,
204 ]
Mike Klein7d302882016-11-03 14:06:31 -0400205 cflags += [
Mike Klein6749af42016-11-07 15:38:48 -0500206 "-isysroot",
207 ios_sysroot,
208 "-arch",
Mike Kleinb48fd3c2017-01-23 11:58:53 -0500209 _target,
Mike Klein7d302882016-11-03 14:06:31 -0400210 ]
211 cflags_cc += [ "-stdlib=libc++" ]
212 ldflags += [
Mike Klein6749af42016-11-07 15:38:48 -0500213 "-isysroot",
214 ios_sysroot,
215 "-arch",
Mike Kleinb48fd3c2017-01-23 11:58:53 -0500216 _target,
Mike Klein7d302882016-11-03 14:06:31 -0400217 "-stdlib=libc++",
218 ]
Herb Derby76073c12016-12-08 19:00:40 -0500219 libs += [ "objc" ]
Mike Klein7d302882016-11-03 14:06:31 -0400220 }
221
mtkleinb9be9792016-09-16 14:44:18 -0700222 if (is_linux) {
Herb Derby76073c12016-12-08 19:00:40 -0500223 libs += [ "pthread" ]
mtkleinb9be9792016-09-16 14:44:18 -0700224 }
225
226 if (sanitize != "") {
227 # You can either pass the sanitizers directly, e.g. "address,undefined",
228 # or pass one of the couple common aliases used by the bots.
229 sanitizers = sanitize
230 if (sanitize == "ASAN") {
Ben Wagnerbee6cac2017-12-04 11:15:58 -0500231 sanitizers = "address,bool,float-cast-overflow,integer-divide-by-zero,nonnull-attribute,null,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr"
Mike Kleine4781e92017-09-28 11:42:28 -0400232 if (!is_mac) {
Mike Klein46d6c682017-10-05 11:22:09 -0400233 sanitizers += ",function" # Not supported on Mac.
234 }
235 if (!is_debug) {
236 sanitizers += ",object-size" # No-op with somewhat annoying warning at -O0.
Mike Kleine4781e92017-09-28 11:42:28 -0400237 }
mtkleinb9be9792016-09-16 14:44:18 -0700238 } else if (sanitize == "TSAN") {
239 sanitizers = "thread"
240 } else if (sanitize == "MSAN") {
241 sanitizers = "memory"
242 }
243
244 cflags += [
245 "-fsanitize=$sanitizers",
246 "-fno-sanitize-recover=$sanitizers",
247 "-fsanitize-blacklist=" + rebase_path("../tools/xsan.blacklist"),
248 ]
249 ldflags += [ "-fsanitize=$sanitizers" ]
250 if (sanitizers == "memory") {
251 cflags += [ "-fsanitize-memory-track-origins" ]
252 cflags_cc += [ "-stdlib=libc++" ]
253 ldflags += [ "-stdlib=libc++" ]
254 }
255 }
256}
257
Mike Klein6e55fef2016-10-26 11:41:47 -0400258config("no_exceptions") {
Mike Klein228276d2017-08-16 13:20:20 +0000259 # Exceptions are disabled by default on Windows. (Use /EHsc to enable them.)
Mike Klein6e55fef2016-10-26 11:41:47 -0400260 if (!is_win) {
261 cflags_cc = [ "-fno-exceptions" ]
262 }
263}
264
Mike Kleinc7165c22016-10-12 23:58:06 -0400265config("warnings") {
266 cflags = []
267 cflags_cc = []
Mike Klein43c25262016-10-20 10:17:47 -0400268 cflags_objc = []
Greg Daniel6b7e0e22017-07-12 16:21:09 -0400269 cflags_objcc = []
Mike Kleinc7165c22016-10-12 23:58:06 -0400270 if (is_win) {
271 cflags += [
272 "/W3", # Turn on lots of warnings.
273
274 # Disable a bunch of warnings:
275 "/wd4244", # conversion from 'float' to 'int', possible loss of data
276 "/wd4267", # conversion from 'size_t' to 'int', possible loss of data
277 "/wd4800", # forcing value to bool 'true' or 'false' (performance warning)
278
279 # Probably only triggers when /EHsc is enabled.
280 "/wd4291", # no matching operator delete found;
281 # memory will not be freed if initialization throws an exception
282 ]
283 } else {
284 cflags += [
285 "-Wall",
286 "-Wextra",
287 "-Winit-self",
288 "-Wpointer-arith",
289 "-Wsign-compare",
290 "-Wvla",
291
292 "-Wno-deprecated-declarations",
Mike Kleindb402ca2016-12-13 12:46:05 -0500293 "-Wno-maybe-uninitialized",
Mike Kleinc7165c22016-10-12 23:58:06 -0400294 ]
295 cflags_cc += [ "-Wnon-virtual-dtor" ]
Chris Dalton1ef80942017-12-04 12:01:30 -0700296 }
Mike Kleinc7165c22016-10-12 23:58:06 -0400297
Chris Dalton1ef80942017-12-04 12:01:30 -0700298 if (is_clang) {
299 cflags += [
300 "-Weverything",
301 "-Wno-unknown-warning-option", # Let older Clangs ignore newer Clangs' warnings.
302 ]
Mike Kleinc7165c22016-10-12 23:58:06 -0400303
Chris Dalton1ef80942017-12-04 12:01:30 -0700304 if (target_cpu == "arm" && is_ios) {
305 # Clang seems to think new/malloc will only be 4-byte aligned on 32-bit iOS.
306 # We're pretty sure it's actually 8-byte alignment.
307 cflags += [ "-Wno-over-aligned" ]
Mike Kleinc7165c22016-10-12 23:58:06 -0400308 }
Chris Dalton1ef80942017-12-04 12:01:30 -0700309
310 # Shouldn't be necessary for local builds. With distributed Windows builds, files may lose
311 # their case during copy, causing case-sensitivity mismatch on remote machines.
312 cflags += [
313 "-Wno-nonportable-include-path",
314 "-Wno-nonportable-system-include-path",
315 ]
316
317 # TODO: These would all be really great warnings to turn on.
318 cflags += [
319 "-Wno-cast-align",
320 "-Wno-cast-qual",
321 "-Wno-conditional-uninitialized",
322 "-Wno-conversion",
323 "-Wno-disabled-macro-expansion",
324 "-Wno-documentation",
325 "-Wno-documentation-unknown-command",
326 "-Wno-double-promotion",
327 "-Wno-exit-time-destructors", # TODO: OK outside libskia
328 "-Wno-float-conversion",
329 "-Wno-float-equal",
330 "-Wno-format-nonliteral",
331 "-Wno-global-constructors", # TODO: OK outside libskia
332 "-Wno-gnu-zero-variadic-macro-arguments",
333 "-Wno-missing-prototypes",
334 "-Wno-missing-variable-declarations",
335 "-Wno-pedantic",
336 "-Wno-reserved-id-macro",
337 "-Wno-shadow",
338 "-Wno-shift-sign-overflow",
339 "-Wno-sign-conversion",
340 "-Wno-signed-enum-bitfield",
341 "-Wno-switch-enum",
342 "-Wno-undef",
343 "-Wno-unreachable-code",
344 "-Wno-unreachable-code-break",
345 "-Wno-unreachable-code-return",
346 "-Wno-unused-macros",
347 "-Wno-unused-member-function",
348 "-Wno-unused-template",
349 "-Wno-zero-as-null-pointer-constant",
350 ]
351 cflags_cc += [
352 "-Wno-abstract-vbase-init",
353 "-Wno-weak-vtables",
354 ]
355
356 # We are unlikely to want to fix these.
357 cflags += [
358 "-Wno-covered-switch-default",
359 "-Wno-deprecated",
360 "-Wno-implicit-fallthrough",
361 "-Wno-missing-noreturn",
362 "-Wno-old-style-cast",
363 "-Wno-padded",
Chris Daltond1ec4102017-12-04 13:31:21 -0700364 "-Wno-newline-eof",
Chris Dalton1ef80942017-12-04 12:01:30 -0700365 ]
366 cflags_cc += [
367 "-Wno-c++98-compat",
368 "-Wno-c++98-compat-pedantic",
369 "-Wno-undefined-func-template",
370 ]
371 cflags_objc += [
372 "-Wno-direct-ivar-access",
373 "-Wno-objc-interface-ivars",
374 ]
375 cflags_objcc += [
376 "-Wno-direct-ivar-access",
377 "-Wno-objcc-interface-ivars",
378 ]
Mike Kleinc7165c22016-10-12 23:58:06 -0400379 }
380}
Mike Klein50500ad2016-11-16 12:13:44 -0500381config("warnings_except_public_headers") {
Chris Dalton1ef80942017-12-04 12:01:30 -0700382 if (!is_win || is_clang) {
Mike Klein50500ad2016-11-16 12:13:44 -0500383 cflags = [ "-Wno-unused-parameter" ]
384 }
385}
Mike Kleinc7165c22016-10-12 23:58:06 -0400386
Mike Klein121563e2016-10-04 17:09:13 -0400387config("extra_flags") {
Kevin Lubick2677a9a2017-03-28 15:45:41 -0400388 asmflags = extra_asmflags
Mike Klein121563e2016-10-04 17:09:13 -0400389 cflags = extra_cflags
390 cflags_c = extra_cflags_c
391 cflags_cc = extra_cflags_cc
392 ldflags = extra_ldflags
393}
394
mtkleinb9be9792016-09-16 14:44:18 -0700395config("debug_symbols") {
396 # It's annoying to wait for full debug symbols to push over
397 # to Android devices. -gline-tables-only is a lot slimmer.
398 if (is_android) {
Mike Klein1b4602b2017-08-30 10:23:01 -0400399 cflags = [
400 "-gline-tables-only",
401 "-funwind-tables", # Helps make in-process backtraces fuller.
402 ]
Mike Kleincc300a12016-10-12 16:25:27 -0400403 } else if (is_win) {
404 cflags = [ "/Zi" ]
Mike Klein5286d6c2016-10-13 13:19:25 -0400405 ldflags = [ "/DEBUG" ]
Mike Kleincc300a12016-10-12 16:25:27 -0400406 } else {
mtkleinb9be9792016-09-16 14:44:18 -0700407 cflags = [ "-g" ]
408 }
409}
410
411config("no_rtti") {
412 if (sanitize != "ASAN") { # -fsanitize=vptr requires RTTI
Mike Kleincc300a12016-10-12 16:25:27 -0400413 if (is_win) {
414 cflags_cc = [ "/GR-" ]
415 } else {
mtkleinb9be9792016-09-16 14:44:18 -0700416 cflags_cc = [ "-fno-rtti" ]
417 }
418 }
419}
420
421config("release") {
Mike Kleincc300a12016-10-12 16:25:27 -0400422 if (is_win) {
Mike Klein916ca1d2016-10-20 13:34:18 -0400423 cflags = [
424 "/O2",
425 "/Zc:inline",
Mike Klein8ffb2602016-10-20 15:45:02 -0400426 "/GS-",
Mike Klein916ca1d2016-10-20 13:34:18 -0400427 ]
Mike Klein90a381f2016-10-20 13:52:38 -0400428 ldflags = [
429 "/OPT:ICF",
430 "/OPT:REF",
431 ]
Mike Kleincc300a12016-10-12 16:25:27 -0400432 } else {
Mike Klein0bcfeac2016-10-19 22:24:10 -0400433 cflags = [
434 "-O3",
Mike Kleinbd9be4d2017-02-10 07:59:39 -0500435 "-fdata-sections",
436 "-ffunction-sections",
Mike Klein0bcfeac2016-10-19 22:24:10 -0400437 ]
Mike Kleinbd9be4d2017-02-10 07:59:39 -0500438 if (is_mac || is_ios) {
439 ldflags = [ "-dead_strip" ]
440 } else {
441 ldflags = [ "-Wl,--gc-sections" ]
442 }
Kevin Lubickebf648e2017-09-21 13:45:16 -0400443 if (target_cpu == "wasm") {
444 # The compiler asks us to add an optimization flag to both cflags
445 # and ldflags to cut down on the local variables,
446 # for performance reasons.
447 # The "linking" step is the conversion to javascript.
448 ldflags += [ "-O3" ]
449 }
herbb6318bf2016-09-16 13:29:57 -0700450 }
mtkleinb9be9792016-09-16 14:44:18 -0700451 defines = [ "NDEBUG" ]
mtklein7fbfbbe2016-07-21 12:25:45 -0700452}
453
454config("executable") {
Mike Kleinc5875fb2016-12-06 10:46:02 -0500455 if (is_android) {
Mike Klein1b4602b2017-08-30 10:23:01 -0400456 ldflags = [
457 "-pie",
458 "-rdynamic",
459 ]
Mike Kleinc5875fb2016-12-06 10:46:02 -0500460 } else if (is_mac) {
mtklein7fbfbbe2016-07-21 12:25:45 -0700461 ldflags = [ "-Wl,-rpath,@loader_path/." ]
462 } else if (is_linux) {
mtkleina846c722016-09-15 10:44:15 -0700463 ldflags = [
464 "-rdynamic",
465 "-Wl,-rpath,\$ORIGIN",
466 ]
Mike Klein4b6b5032016-11-06 11:54:19 -0500467 } else if (is_win) {
468 ldflags = [
469 "/SUBSYSTEM:CONSOLE", # Quiet "no subsystem specified; CONSOLE assumed".
470 "/INCREMENTAL:NO", # Quiet warnings about failing to incrementally link by never trying to.
471 ]
mtklein7fbfbbe2016-07-21 12:25:45 -0700472 }
473}