Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

OUT_DIR not defined #290

Closed
Closed

Description

@troplin

I'm using a custom build step (build.rs) where a an additional source file is generated, which is the included with:

include!(concat!(env!("OUT_DIR"), "/grammar.rs"));

In the output of RLS I keep getting the error "environment variable OUT_DIR not defined"

Activity

  1. jrmuizel commented on May 10, 2017

    @jrmuizel

    I see this as well and I rls used to work in this project (webrender/webrender)

  2. nrc commented on May 10, 2017

    @nrc
    Member

    We currently remove env vars from the environment before calling rustc (I thought we didn't do this for build scripts, but it seems like we do). We should be more careful about this and not remove env vars that Cargo has added. If that is too hard, we could just special case OUT_DIR for now.

    This may or may not actually be easy. To get started look at the Environment struct and its uses in build.rs.

  3. nrc commented on May 12, 2017

    @nrc
    Member

    cc #238

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions