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

Side by Side Diff: build/nocompile.gni

Issue 2627703002: Validate GN substitutions in args and rsp files. (Closed)
Patch Set: Format 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/action_target_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is meant to be included into an target to create a unittest that 5 # This file is meant to be included into an target to create a unittest that
6 # invokes a set of no-compile tests. A no-compile test is a test that asserts 6 # invokes a set of no-compile tests. A no-compile test is a test that asserts
7 # a particular construct will not compile. 7 # a particular construct will not compile.
8 # 8 #
9 # Also see: 9 # Also see:
10 # http://dev.chromium.org/developers/testing/no-compile-tests 10 # http://dev.chromium.org/developers/testing/no-compile-tests
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 ] 78 ]
79 sysroot_args = "" 79 sysroot_args = ""
80 if (sysroot != "") { 80 if (sysroot != "") {
81 sysroot_args = " --sysroot " + rebase_path(sysroot, root_build_dir) 81 sysroot_args = " --sysroot " + rebase_path(sysroot, root_build_dir)
82 } 82 }
83 args = [ 83 args = [
84 "4", # number of compilers to invoke in parallel. 84 "4", # number of compilers to invoke in parallel.
85 "{{source}}", 85 "{{source}}",
86 "-Wall -Werror -Wfatal-errors " + "-I" + 86 "-Wall -Werror -Wfatal-errors " + "-I" +
87 rebase_path("//", root_build_dir) + sysroot_args, 87 rebase_path("//", root_build_dir) + sysroot_args,
88 "{{output}}", 88 rebase_path(result_path, root_build_dir),
89 ] 89 ]
90 } 90 }
91 91
92 test(target_name) { 92 test(target_name) {
93 deps = invoker.deps + [ ":$nocompile_target" ] 93 deps = invoker.deps + [ ":$nocompile_target" ]
94 sources = get_target_outputs(":$nocompile_target") 94 sources = get_target_outputs(":$nocompile_target")
95 } 95 }
96 } 96 }
97 } 97 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/action_target_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698