Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
R
riot-sys
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • etonomy
  • riot-sys
  • Merge Requests
  • !1

Closed
Opened Nov 06, 2020 by Kaspar Schleiser@kaspar030
  • Report abuse
Report abuse

Draft: pass CC and CFLAGS to dependent crates

  • Overview 4
  • Commits 2
  • Changes 2

This PR adds passing of RIOT's CC and CFLAGS values to dependent crates.

See https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key for how "links" is supposed to work. Here, we don't really link to a native "riot-sys" library, but setting links = "riot-sys" still makes cargo pass on key/value pairs specified by build.rs printing "cargo:KEY=value".

(will open a PR to riot-wrappers making use of this shortly). Corresponding riot-wrappers MR.

This change shouldn't affect the current way of building. The riot-wrappers change would require this riot-sys change if merged. So maybe a version increase is necessary here.

Edited Nov 06, 2020 by Kaspar Schleiser
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: etonomy/riot-sys!1
Source branch: pass_on_cc_cflags