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
  • !1720

Fix test_host_app usage with swift

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/robbertvanginkel/test_host_and_swift into master Jan 22, 2018
  • Overview 23
  • Commits 6
  • Pipelines 0
  • Changes 9

Created by: robbertvanginkel

Tests with swift in both the test host and test target currently fail compilation with a cryptic error like

ld: library not found for -lswiftMetal for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is because the SwiftRuntimeNativeLinkable is both dependency of the test_host_app and the tests. When linking the tests, the dependencies it shares with its test_host_app (bundle_loader in ld) are added to a blacklist so they are not linked into the tests to prevent duplicate symbols.

However, if there's usage of swift in the tests their object files will contain linker directives to link against some wrappers around the standard library which require the flags added by SwiftRuntimeNativeLinkable to link correctly.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/robbertvanginkel/test_host_and_swift