Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Eliminate gyp/build output #4582

Closed
Closed

Description

@jfirebaugh

Some build products get output to gyp/build rather than build. This is probably a historical accident or quirk of gyp. We should adjust the build to eliminate this special case output directory -- everything should go to build.

Activity

  1. added
    macOS
    on Apr 2, 2016
  2. jfirebaugh commented on Apr 3, 2016

    @jfirebaugh
    ContributorAuthor

    gyp is involved here, but this largely seems to be a quirk of xcodebuild -target foo versus xcodebuild -scheme foo. The former seems to set SYMROOT to $SRCROOT/build (and SRCROOT is indeed set to ./gyp by gyp), while the latter uses a directory in ~/Library/Developer/Xcode/DerivedData (the same one that builds from within Xcode use). I can't find this difference between -target and -scheme documented anywhere, and it's contrary to the output of xcodebuild -showBuildSettings, which says that SYMROOT is the ~/Library/... path in either case.

  3. mikemorris commented on Apr 4, 2016

    @mikemorris
    Contributor

    IIRC this was a result of some refactoring I did on the Node.js bindings when we integrated them into this repository.

  4. self-assigned this
    on Apr 5, 2016
  5. jfirebaugh commented on Apr 7, 2016

    @jfirebaugh
    ContributorAuthor

    The key here seems to be that SYMROOT needs to be an absolute path. If it's a relative path, it's ignored by xcodebuild -target ..., but if it's absolute, it's respected.

    In #4608 I'm setting up the ios and osx gyp files to force an absolute path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildmacOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions