| Index: sandbox/mac/BUILD.gn
|
| diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
|
| index b0a2989ad9222ca01c713dc6144319b8d2a3b981..8a8533ca4e5d6a5e9cc74c8724d8e9cabaa76b15 100644
|
| --- a/sandbox/mac/BUILD.gn
|
| +++ b/sandbox/mac/BUILD.gn
|
| @@ -28,8 +28,15 @@ component("sandbox") {
|
|
|
| deps = [
|
| "//base",
|
| - ":generate_stubs",
|
| ]
|
| +
|
| + # When the build SDK is 10.6, generate a dynamic stub loader. When the
|
| + # SDK is higher, then libxpc.dylib will be loaded automatically as part
|
| + # of libSystem, and only forward declarations of private symbols are
|
| + # necessary.
|
| + if (mac_sdk_version == "10.6") {
|
| + deps += [ ":generate_stubs" ]
|
| + }
|
| }
|
|
|
| generate_stubs_script = "//tools/generate_stubs/generate_stubs.py"
|
|
|