Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !1164

[swift] Allow bridging header import headers under current module

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/zayhero-zz/zayhero_support_mix_lang into master Feb 06, 2017
  • Overview 13
  • Commits 1
  • Pipelines 0
  • Changes 9

Created by: zayhero-zz

Right now when buck building swift with bridging header, it is not able to import header files when it reference from current library.

For example, in build rule with this setup

apple_library(
    name = 'Greeter',
    bridging_header = 'bridging-header.h',
    headers = glob([
        '*.h',
    ]),
    srcs = glob([
        '*.m',
        '*.swift',
    ]),
    frameworks = [
        '$SDKROOT/System/Library/Frameworks/Foundation.framework'
    ],
)

We can not do #import <Greeter/Greeter.h> in bridging header.

After investigation, I figure its due to buck didn't include the header map generated for current library in SwiftCompile.

This PR is to improve buck so it can support above use case.

Testing And a new test case and verify it with buck test --all

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/zayhero-zz/zayhero_support_mix_lang