• Home
  • Raw
  • Download

Lines Matching +full:- +full:fno +full:- +full:sanitize +full:- +full:recover

3 # Use of this source code is governed by a BSD-style license that can be
44 "/utf-8", # Set Source and Executable character sets to UTF-8.
47 cflags += [ "-fms-compatibility-version=19" ] # 2015
71 "-imsvc",
95 "-fstrict-aliasing",
96 "-fPIC",
98 cflags_cc += [ "-std=c++14" ]
101 # These would make stack traces worse on Linux, so we don't just set them willy-nilly.
103 cflags += [ "-fvisibility=hidden" ]
104 cflags_cc += [ "-fvisibility-inlines-hidden" ]
110 "-march=armv7-a",
111 "-mfpu=neon",
112 "-mthumb",
115 asmflags += [ "-march=loongson3a" ]
117 "-march=loongson3a",
120 "-DSKCMS_PORTABLE",
123 asmflags += [ "-march=mips64" ]
124 cflags += [ "-march=mips64" ]
126 asmflags += [ "-m32" ]
128 "-m32",
129 "-msse2",
130 "-mfpmath=sse",
132 ldflags += [ "-m32" ]
137 "-fno-builtin-malloc",
138 "-fno-builtin-calloc",
139 "-fno-builtin-realloc",
140 "-fno-builtin-free",
146 asmflags += [ "--target=$ndk_target" ]
148 "--sysroot=$ndk/sysroot",
149 "-isystem$ndk/sysroot/usr/include/$ndk_target",
150 "-D__ANDROID_API__=$ndk_api",
151 "--target=$ndk_target",
154 "-isystem$ndk/sources/cxx-stl/llvm-libc++/include",
155 "-isystem$ndk/sources/cxx-stl/llvm-libc++abi/include",
156 "-isystem$ndk/sources/android/support/include",
159 "--sysroot=$ndk/platforms/$ndk_platform",
160 "--target=$ndk_target",
161 "-B$ndk/toolchains/$ndk_gccdir-4.9/prebuilt/$ndk_host/$ndk_target/bin",
164 "$ndk/sources/cxx-stl/llvm-libc++/libs/$ndk_stdlib",
165 "$ndk/toolchains/$ndk_gccdir-4.9/prebuilt/$ndk_host/lib/gcc/$ndk_target/4.9.x",
187 "-isysroot",
189 "-arch",
193 "-isysroot",
195 "-arch",
198 cflags_cc += [ "-stdlib=libc++" ]
200 "-isysroot",
202 "-arch",
204 "-stdlib=libc++",
211 if (is_debug && sanitize == "") {
217 # ld: warning: text-based stub file
221 ldflags += [ "-Wl,-w" ]
224 if (sanitize != "" && sanitize != "MSVC") {
227 sanitizers = sanitize
229 if (sanitize == "ASAN" || sanitize == "UBSAN") {
232 if (sanitize == "ASAN") {
240 } else if (sanitize == "TSAN") {
242 } else if (sanitize == "MSAN") {
249 "-fsanitize=$sanitizers",
250 "-fno-sanitize-recover=$sanitizers",
251 "-fsanitize-blacklist=$_blacklist",
253 ldflags += [ "-fsanitize=$sanitizers" ]
259 "-include$_blacklist",
260 "-fno-omit-frame-pointer",
265 cflags_cc += [ "-stdlib=libc++" ]
266 ldflags += [ "-stdlib=libc++" ]
270 cflags += [ "-fsanitize-memory-track-origins" ]
278 cflags_cc = [ "-fno-exceptions" ]
302 "-Werror",
303 "-Wall",
304 "-Wextra",
305 "-Winit-self",
306 "-Wpointer-arith",
307 "-Wsign-compare",
308 "-Wvla",
310 "-Wno-deprecated-declarations",
311 "-Wno-maybe-uninitialized",
314 "-Wnon-virtual-dtor",
315 "-Wno-noexcept-type",
321 "-fcolor-diagnostics",
322 "-Weverything",
323 "-Wno-unknown-warning-option", # Let older Clangs ignore newer Clangs' warnings.
327 # Clang seems to think new/malloc will only be 4-byte aligned on 32-bit iOS.
328 # We're pretty sure it's actually 8-byte alignment.
329 cflags += [ "-Wno-over-aligned" ]
332 # Clang seems to think new/malloc will only be 4-byte aligned on 32-bit x86 Android builds.
333 # We're pretty sure it's actually 8-byte alignment. See OverAlignedTest.cpp for more info.
334 cflags += [ "-Wno-over-aligned" ]
338 # their case during copy, causing case-sensitivity mismatch on remote machines.
340 "-Wno-nonportable-include-path",
341 "-Wno-nonportable-system-include-path",
346 "-Wno-cast-align",
347 "-Wno-cast-qual",
348 "-Wno-conversion",
349 "-Wno-disabled-macro-expansion",
350 "-Wno-documentation",
351 "-Wno-documentation-unknown-command",
352 "-Wno-double-promotion",
353 "-Wno-exit-time-destructors", # TODO: OK outside libskia
354 "-Wno-float-equal",
355 "-Wno-format-nonliteral",
356 "-Wno-global-constructors", # TODO: OK outside libskia
357 "-Wno-missing-prototypes",
358 "-Wno-missing-variable-declarations",
359 "-Wno-pedantic",
360 "-Wno-reserved-id-macro",
361 "-Wno-shadow",
362 "-Wno-shift-sign-overflow",
363 "-Wno-signed-enum-bitfield",
364 "-Wno-switch-enum",
365 "-Wno-undef",
366 "-Wno-unreachable-code",
367 "-Wno-unreachable-code-break",
368 "-Wno-unreachable-code-return",
369 "-Wno-unused-macros",
370 "-Wno-unused-member-function",
371 "-Wno-unused-template",
372 "-Wno-zero-as-null-pointer-constant",
375 "-Wno-abstract-vbase-init",
376 "-Wno-weak-vtables",
381 "-Wno-bad-function-cast",
382 "-Wno-covered-switch-default",
383 "-Wno-deprecated",
384 "-Wno-missing-noreturn",
385 "-Wno-old-style-cast",
386 "-Wno-padded",
387 "-Wno-newline-eof",
390 "-Wno-c++98-compat",
391 "-Wno-c++98-compat-pedantic",
392 "-Wno-undefined-func-template",
395 "-Wno-direct-ivar-access",
396 "-Wno-objc-interface-ivars",
399 "-Wno-direct-ivar-access",
400 "-Wno-objcc-interface-ivars",
404 cflags += [ "-Wno-implicit-fallthrough" ]
409 cflags = [ "-Wno-unused-parameter" ]
423 # to Android devices. -gline-tables-only is a lot slimmer.
426 "-gline-tables-only",
427 "-funwind-tables", # Helps make in-process backtraces fuller.
432 cflags += [ "-gcodeview-ghash" ]
438 cflags = [ "-g" ]
443 if (sanitize != "ASAN") { # -fsanitize=vptr requires RTTI
445 cflags_cc = [ "/GR-" ]
447 cflags_cc = [ "-fno-rtti" ]
464 "-O3",
465 "-fdata-sections",
466 "-ffunction-sections",
469 ldflags = [ "-dead_strip" ]
471 ldflags = [ "-Wl,--gc-sections" ]
478 ldflags += [ "-O3" ]
499 "-pie",
500 "-rdynamic",
503 ldflags = [ "-Wl,-rpath,@loader_path/." ]
506 "-rdynamic",
507 "-Wl,-rpath,\$ORIGIN",