• Robert Sesek's avatar
    mac: Use symbolic links to the SDK when using system Xcode and Goma. · eefc5925
    Robert Sesek authored
    Goma RBE only supports paths that are relative to the build directory,
    and the system Xcode typically resides outside of that, so all
    compilation requests fail. The solution is to put a symbolic link to
    the SDK in the build directory and reference that instead.
    
    In addition, any files in the SDK referenced as inputs to a GN action
    need to be listed as an output of some other GN action, as they are now
    considered to be build outputs by way of the symlink in the build
    directory. This creates a new //build/config/mac:sdk_inputs target for
    those actions to depend on, which lists those files as outputs via
    a dummy build rule.
    
    Bug: 1157103
    Change-Id: I5f7a1926fc2714c10a8786e100371d3eb9888a05
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2582409Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
    Commit-Queue: Robert Sesek <rsesek@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#835636}
    eefc5925
BUILD.gn 4.55 KB