Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2375)

Unified Diff: build/toolchain/nacl/BUILD.gn

Issue 2667853004: Remove dependency on scan-build wrapper script for Clang analysis builds. (Closed)
Patch Set: Removed goma TODO from docs Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/toolchain/nacl/BUILD.gn
diff --git a/build/toolchain/nacl/BUILD.gn b/build/toolchain/nacl/BUILD.gn
index 89e642eb9cfc9b8b7d24e61aba68d2e49cb52ada..c5899873a5c5f2448ac03f44f05816269c46ef4b 100644
--- a/build/toolchain/nacl/BUILD.gn
+++ b/build/toolchain/nacl/BUILD.gn
@@ -74,13 +74,16 @@ template("pnacl_toolchain") {
if (defined(invoker.strip)) {
strip = scriptprefix + toolprefix + invoker.strip + scriptsuffix
}
+ forward_variables_from(invoker,
+ [
+ "executable_extension",
+ "is_clang_analysis_supported",
+ ])
# Note this is not the usual "ld = cxx" because "ld" uses are
# never run via goma, so this needs scriptprefix.
ld = scriptprefix + toolprefix + "clang++" + scriptsuffix
- executable_extension = invoker.executable_extension
-
toolchain_args = {
is_clang = true
current_cpu = "pnacl"
@@ -104,6 +107,10 @@ pnacl_toolchain("newlib_pnacl") {
pnacl_toolchain("newlib_pnacl_nonsfi") {
executable_extension = ""
strip = "strip"
+
+ if (use_clang_static_analyzer) {
Wez 2017/02/03 08:05:01 nit: Why is this conditional on the analyzer being
Kevin M 2017/02/03 18:46:29 It's a dead store if analysis isn't enabled, which
Wez 2017/02/03 19:27:54 Aha - thanks for clarifying. :)
+ is_clang_analysis_supported = false
+ }
}
template("nacl_glibc_toolchain") {

Powered by Google App Engine
This is Rietveld 408576698