Lines Matching +full:ninja +full:- +full:linux
7 // http://www.apache.org/licenses/LICENSE-2.0
26 // will save bytes in build.ninja so they aren't repeated for every file
28 "-DANDROID",
29 "-fmessage-length=0",
30 "-W",
31 "-Wall",
32 "-Wno-unused",
33 "-Winit-self",
34 "-Wpointer-arith",
35 "-Wunreachable-code-loop-increment",
38 "-no-canonical-prefixes",
39 "-fno-canonical-system-headers",
41 "-DNDEBUG",
42 "-UDEBUG",
44 "-fno-exceptions",
45 "-Wno-multichar",
47 "-O2",
48 "-g",
49 "-fdebug-info-for-profiling",
51 "-fno-strict-aliasing",
53 "-Werror=date-time",
54 "-Werror=pragma-pack",
55 "-Werror=pragma-pack-suspicious-include",
56 "-Werror=string-plus-int",
57 "-Werror=unreachable-code-loop-increment",
63 "-fdiagnostics-color",
65 "-ffunction-sections",
66 "-fdata-sections",
67 "-fno-short-enums",
68 "-funwind-tables",
69 "-fstack-protector-strong",
70 "-Wa,--noexecstack",
71 "-D_FORTIFY_SOURCE=2",
73 "-Wstrict-aliasing=2",
75 "-Werror=return-type",
76 "-Werror=non-virtual-dtor",
77 "-Werror=address",
78 "-Werror=sequence-point",
79 "-Werror=format-security",
83 "-fvisibility-inlines-hidden",
87 "-Wl,-z,noexecstack",
88 "-Wl,-z,relro",
89 "-Wl,-z,now",
90 "-Wl,--build-id=md5",
91 "-Wl,--warn-shared-textrel",
92 "-Wl,--fatal-warnings",
93 "-Wl,--no-undefined-version",
95 // --exclude-libs arguments can be removed.
96 "-Wl,--exclude-libs,libgcc.a",
97 "-Wl,--exclude-libs,libgcc_stripped.a",
98 "-Wl,--exclude-libs,libunwind_llvm.a",
99 "-Wl,--exclude-libs,libunwind.a",
100 "-Wl,--icf=safe",
105 "-fuse-ld=lld",
114 hostGlobalLldflags = []string{"-fuse-ld=lld"}
117 "-Wsign-promo",
121 "-Werror=bool-operation",
122 "-Werror=implicit-int-float-conversion",
123 "-Werror=int-in-bool-context",
124 "-Werror=int-to-pointer-cast",
125 "-Werror=pointer-to-int-cast",
126 "-Werror=string-compare",
127 "-Werror=xor-used-as-pow",
128 // http://b/161386391 for -Wno-void-pointer-to-enum-cast
129 "-Wno-void-pointer-to-enum-cast",
130 // http://b/161386391 for -Wno-void-pointer-to-int-cast
131 "-Wno-void-pointer-to-int-cast",
132 // http://b/161386391 for -Wno-pointer-to-int-cast
133 "-Wno-pointer-to-int-cast",
134 "-Werror=fortify-source",
138 "-w",
148 ClangDefaultVersion = "clang-r416183b1"
164 if android.BuildOs == android.Linux {
165 commonGlobalCflags = append(commonGlobalCflags, "-fdebug-prefix-map=/proc/self/cwd=")
183 "-ftrivial-auto-var-init=zero",
184 "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang",
194 // Prefer zero-init if multiple options are set.
196 …flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-…
198 flags = append(flags, "-ftrivial-auto-var-init=pattern")
200 flags = append(flags, "-ftrivial-auto-var-init=uninitialized")
203 …flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-…
228 pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I",
263 …Variable("ClangAsanLibDir", "${ClangBase}/linux-x86/${ClangVersion}/lib64/clang/${ClangShortVersio…
268 pctx.SourcePathVariable("RSClangVersion", "clang-3289846")
273 pctx.PrefixedExistentPathsForSourcesVariable("RsGlobalIncludes", "-I",