8000 Respect CARGO_TARGET_DIR · Issue #2331 · succinctlabs/sp1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Respect CARGO_TARGET_DIR #2331
Open
Open
@thomasgassmann

Description

@thomasgassmann

Component

Other (please describe), sp1-sdk

Describe the feature you would like

Currently building any project referencing sp1-recursion-core with a value of CARGO_TARGET_DIR not ending in target will fail.

E.g. the following fails:

cargo init
cargo add sp1-recursion-core
CARGO_TARGET_DIR=/tmp/test cargo build

The panic occurs here.

Additional context

error: failed to run custom build command for `sp1-recursion-core v5.0.5`

Caused by:
  process didn't exit successfully: `/tmp/test/debug/build/sp1-recursion-core-b0fe302f15c06e9f/build-script-build` (exit status: 101)
  --- stderr

  thread 'main' panicked at /home/thomas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sp1-recursion-core-5.0.5/build.rs:52:21:
  OUT_DIR does not have parent called "target": "/tmp/test/debug/build/sp1-recursion-core-a8dc4a17f5d960ce/out"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0