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

Add system_include parameter for cxx_library to use -isystem for includes

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/sheldonneuberger/snn-isystem into master Jun 06, 2018
  • Overview 6
  • Commits 4
  • Pipelines 0
  • Changes 4

Created by: sheldonneuberger

Fixes https://github.com/facebook/buck/issues/1906

Adds a system_include parameter to cxx_library that defaults to false. When set to true, that library's exported headers will be included with "-isystem" instead of "-I" by consumers. The practical effect of this is to ignore warnings from those header files.

prebuilt_cxx_library includes its headers with -isystem, but it's common to copy the entire source of a project into the repo and build it with cxx_library, in which case system_include=True comes in handy when you want to avoid making edits to the source.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/sheldonneuberger/snn-isystem