Skip to content

PGO on Windows-GNU #49409

Closed
Closed
@leonardo-m

Description

@leonardo-m

I am trying to see if -Z pgo-gen is available on Windows-Gnu:

#48346

I am using:

rustc 1.26.0-nightly (188e693b3 2018-03-26)
binary: rustc
commit-hash: 188e693b392116c46f746e86f8521f9621fcfd43
commit-date: 2018-03-26
host: x86_64-pc-windows-gnu
release: 1.26.0-nightly
LLVM version: 6.0

I am using a very small Rust test program:

fn main() {
    println!("Hello");
}

If I compile with:

rustc -Z pgo-gen test.rs

It gives me:

error: debugging option `pgo-gen` requires a string (Z pgo-gen=<value>)

If I compile with (using a random string?):

rustc -Z pgo-gen=abc test.rs

It gives me:

error[E0463]: can't find crate for `profiler_builtins`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.O-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions