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

Unified Diff: build/nocompile.gni

Issue 2595413004: Fix no-compile tests on Linux by adding sysroot (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/nocompile.gni
diff --git a/build/nocompile.gni b/build/nocompile.gni
index 1b292d79d19f8f226c7b9dea68ff569217652290..d9a9973d368f43e9aaed5bfecdb374fac263af6b 100644
--- a/build/nocompile.gni
+++ b/build/nocompile.gni
@@ -63,6 +63,7 @@ declare_args() {
}
if (enable_nocompile_tests) {
+ import("//build/config/sysroot.gni")
template("nocompile_test") {
nocompile_target = target_name + "_run_nocompile"
@@ -75,11 +76,15 @@ if (enable_nocompile_tests) {
outputs = [
result_path,
]
+ sysroot_args = ""
+ if (sysroot != "") {
+ sysroot_args = " --sysroot " + rebase_path(sysroot, root_build_dir)
+ }
args = [
"4", # number of compilers to invoke in parallel.
"{{source}}",
"-Wall -Werror -Wfatal-errors " + "-I" +
- rebase_path("//", root_build_dir),
+ rebase_path("//", root_build_dir) + sysroot_args,
"{{output}}",
]
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698