From 1764594bff5fcb57c79e6ecf8e05320400c0e99e Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Fri, 15 Dec 2017 18:49:34 -0500 Subject: [PATCH] gn, mac: Work without a sysroot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed to make the “sysroot = "/"” configuration, which translates to “sysroot = ""”, work properly Bug: crashpad:79 Change-Id: I25ab49b7d57abfcf0ce9a62925013bb58dadf5dd Reviewed-on: https://chromium-review.googlesource.com/831007 Reviewed-by: Scott Graham --- util/BUILD.gn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/util/BUILD.gn b/util/BUILD.gn index ba5232f0..e296b29e 100644 --- a/util/BUILD.gn +++ b/util/BUILD.gn @@ -42,9 +42,13 @@ if (is_mac) { hermetic_xcode_path, ] } + if (sysroot != "") { + args += [ + "--sdk", + sysroot, + ] + } args += [ - "--sdk", - sysroot, "--include", rebase_path("../compat/mac", root_build_dir), ]