Skip to content

How to configure rust (standard library) source #98

Closed

Description

rustc_src = $(rustc_sysroot)/lib/rustlib/src/rust

There are multiple issues I see here:

  • It should be possible for the user to configure the rust source directory independently of the rust sysroot
  • Currently only sources from the library/ subdirectory are used. If it stays like this in the forseeable future, I would like to change the rustc_src variable to a rust_lib_src variable, which points directly to the library/ subdirectory. For example my distribution has an own package rustLibSrc, which will decrease the amount of downloads needed.

Activity

  1. bjorn3 commented on Apr 15, 2021

    @bjorn3
    Member

    Currently only sources from the library/ subdirectory are used.

    This may change as the layout of the rust repo changes. For example libcore used to be in the src/libcore dir of the rust repo and could thus be found in $rustc_src/src/libcore. A while ago it was changed to be in the library/core dir. It is possible that this will change again in the future, though I don't think it is likely to happen in the forseeable future.

  2. ghost closed this as completedon Apr 29, 2021
  3. kloenk commented on Apr 29, 2021

    @kloenk
    Member

    Fixed in #226

  4. added a commit that references this issue on Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    • kbuildRelated to building the kernel, `make`, `Kbuild`, `Kconfig` options...

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions