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

Unified Diff: build/config/linux/pkg_config.gni

Issue 1556923002: clang: Makes builds with clang less dependent on absolute file path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch to "//." Created 4 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/config/linux/pkg_config.gni
diff --git a/build/config/linux/pkg_config.gni b/build/config/linux/pkg_config.gni
index 914ca8d6e728ae8eb3826e760246c6561fe28df6..e81d527ec40b0f324a75f4b863c80cd9ee7c2b55 100644
--- a/build/config/linux/pkg_config.gni
+++ b/build/config/linux/pkg_config.gni
@@ -41,7 +41,7 @@ if (sysroot != "") {
# Pass the sysroot if we're using one (it requires the CPU arch also).
pkg_config_args = [
"-s",
- sysroot,
+ rebase_path(sysroot, "", ".."),
brettw 2016/01/06 18:15:07 Wait, I don't understand this line. Why the ".."?
Zachary Forman 2016/01/06 23:20:49 Without the .., you get output like "-I../../build
brettw 2016/01/07 19:22:22 Semantically I don't think this line makes sense,
Zachary Forman 2016/01/07 22:54:27 I don't think this is the case. To start with,the
"-a",
current_cpu,
]

Powered by Google App Engine
This is Rietveld 408576698