ios: Deal with ios_enable_relative_sdk_path in Chromium

Change-Id: Ibb03748d8881c4a71662a7d6ad5743107ccd748d
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2174267
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Mark Mentovai 2020-04-30 21:35:16 -04:00 committed by Commit Bot
parent 8bd5e53777
commit 2f217736a3

View File

@ -80,10 +80,22 @@ if (crashpad_is_mac || crashpad_is_ios) {
}
}
if (sysroot != "") {
args += [
"--sdk",
sysroot,
]
if (crashpad_is_in_chromium) {
# Chromium often brings along its own SDK and wants to keep paths
# relative…
args += [
"--sdk",
rebase_path(sysroot, root_build_dir)
]
} else {
# …but thats not an option in the standalone Crashpad build, where the
# SDK is installed on the system and is absolute. (But use rebase_path
# just to be sure.)
args += [
"--sdk",
rebase_path(sysroot, ""),
]
}
}
args += [
"--include",