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

Unified Diff: tools/gn/functions.cc

Issue 630223002: gn: Support build directories outside the source tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated patch set Created 6 years, 2 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: tools/gn/functions.cc
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
index c68eda53adcae947ee252754d8c5c4a2b416e917..b746bcdf78193d348c9d9daedf3885000a2ab4c6 100644
--- a/tools/gn/functions.cc
+++ b/tools/gn/functions.cc
@@ -468,7 +468,8 @@ Value RunImport(Scope* scope,
const SourceDir& input_dir = scope->GetSourceDir();
SourceFile import_file =
- input_dir.ResolveRelativeFile(args[0].string_value());
+ input_dir.ResolveRelativeFile(args[0].string_value(),
+ scope->settings()->build_settings()->root_path());
scope->settings()->import_manager().DoImport(import_file, function,
scope, err);
return Value();

Powered by Google App Engine
This is Rietveld 408576698