Skip to content

Fails to compile with nvcc when passing RUSTFLAGS='-C target-feature=+crt-static' #772

Open
@solkitten

Description

@solkitten

When I'm trying to make a static build of my rust application with some cuda code doing:
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release
I'm getting the following error under linux:

 cargo:warning=nvcc fatal   : Unknown option '-static'
  exit status: 1

Tested with CUDA 12

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